From 1d26915ddf9918c5d3ab9470ae8ab846c84fd5f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20M=C3=BCller?= Date: Thu, 3 Dec 2020 14:21:49 -0800 Subject: [PATCH] fix merge --- runtime/storage_test.go | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/runtime/storage_test.go b/runtime/storage_test.go index 848d9134e1..28631da31d 100644 --- a/runtime/storage_test.go +++ b/runtime/storage_test.go @@ -310,8 +310,8 @@ func TestAccountStorageStorage(t *testing.T) { runtimeInterface := &testRuntimeInterface{ storage: storage, - getSigningAccounts: func() ([]Address, error) { - return []Address{{42}}, nil + getSigningAccounts: func() []Address { + return []Address{{42}} }, getStorageUsed: func(_ Address) (uint64, error) { var amount uint64 = 0 @@ -330,13 +330,10 @@ func TestAccountStorageStorage(t *testing.T) { nextTransactionLocation := newTransactionLocationGenerator() err := runtime.ExecuteTransaction( - Script{ - Source: script, - }, - Context{ - Interface: runtimeInterface, - Location: nextTransactionLocation(), - }, + script, + nil, + runtimeInterface, + nextTransactionLocation(), ) require.NoError(t, err)