@@ -31,7 +31,7 @@ func TestAccountsList(t *testing.T) {
3131	err  :=  store .CommitTransaction (ctx , pointer .For (ledger .NewTransaction ().
3232		WithPostings (ledger .NewPosting ("world" , "account:1" , "USD" , big .NewInt (100 ))).
3333		WithTimestamp (now ).
34- 		WithInsertedAt (now )))
34+ 		WithInsertedAt (now )),  nil )
3535	require .NoError (t , err )
3636
3737	require .NoError (t , store .UpdateAccountsMetadata (ctx , map [string ]metadata.Metadata {
@@ -55,19 +55,19 @@ func TestAccountsList(t *testing.T) {
5555	err  =  store .CommitTransaction (ctx , pointer .For (ledger .NewTransaction ().
5656		WithPostings (ledger .NewPosting ("world" , "account:1" , "USD" , big .NewInt (100 ))).
5757		WithTimestamp (now .Add (4 * time .Minute )).
58- 		WithInsertedAt (now .Add (100 * time .Millisecond ))))
58+ 		WithInsertedAt (now .Add (100 * time .Millisecond ))),  nil )
5959	require .NoError (t , err )
6060
6161	err  =  store .CommitTransaction (ctx , pointer .For (ledger .NewTransaction ().
6262		WithPostings (ledger .NewPosting ("account:1" , "bank" , "USD" , big .NewInt (50 ))).
6363		WithTimestamp (now .Add (3 * time .Minute )).
64- 		WithInsertedAt (now .Add (200 * time .Millisecond ))))
64+ 		WithInsertedAt (now .Add (200 * time .Millisecond ))),  nil )
6565	require .NoError (t , err )
6666
6767	err  =  store .CommitTransaction (ctx , pointer .For (ledger .NewTransaction ().
6868		WithPostings (ledger .NewPosting ("world" , "account:1" , "USD" , big .NewInt (0 ))).
6969		WithTimestamp (now .Add (- time .Minute )).
70- 		WithInsertedAt (now .Add (200 * time .Millisecond ))))
70+ 		WithInsertedAt (now .Add (200 * time .Millisecond ))),  nil )
7171	require .NoError (t , err )
7272
7373	t .Run ("list all" , func (t  * testing.T ) {
@@ -305,7 +305,7 @@ func TestAccountsGet(t *testing.T) {
305305	tx1  :=  pointer .For (ledger .NewTransaction ().WithPostings (
306306		ledger .NewPosting ("world" , "multi" , "USD/2" , big .NewInt (100 )),
307307	).WithTimestamp (now ))
308- 	err  :=  store .CommitTransaction (ctx , tx1 )
308+ 	err  :=  store .CommitTransaction (ctx , tx1 ,  nil )
309309	require .NoError (t , err )
310310
311311	// sleep for at least the time precision to ensure the next transaction is inserted with a different timestamp 
@@ -320,7 +320,7 @@ func TestAccountsGet(t *testing.T) {
320320	tx2  :=  pointer .For (ledger .NewTransaction ().WithPostings (
321321		ledger .NewPosting ("world" , "multi" , "USD/2" , big .NewInt (0 )),
322322	).WithTimestamp (now .Add (- time .Minute )))
323- 	err  =  store .CommitTransaction (ctx , tx2 )
323+ 	err  =  store .CommitTransaction (ctx , tx2 ,  nil )
324324	require .NoError (t , err )
325325
326326	t .Run ("find account" , func (t  * testing.T ) {
@@ -446,7 +446,7 @@ func TestAccountsCount(t *testing.T) {
446446
447447	err  :=  store .CommitTransaction (ctx , pointer .For (ledger .NewTransaction ().WithPostings (
448448		ledger .NewPosting ("world" , "central_bank" , "USD/2" , big .NewInt (100 )),
449- 	)))
449+ 	)),  nil )
450450	require .NoError (t , err )
451451
452452	countAccounts , err  :=  store .Accounts ().Count (ctx , ledgercontroller.ResourceQuery [any ]{})
0 commit comments