From e314442a629ff7a8fb0d9bd64c09be9448236d46 Mon Sep 17 00:00:00 2001 From: Maxence Maireaux Date: Thu, 17 Nov 2022 16:38:29 +0100 Subject: [PATCH] fix: little error in executor_test --- pkg/ledger/executor_test.go | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/pkg/ledger/executor_test.go b/pkg/ledger/executor_test.go index 1d291f7c4..ea019cf9f 100644 --- a/pkg/ledger/executor_test.go +++ b/pkg/ledger/executor_test.go @@ -416,27 +416,23 @@ func TestScriptReferenceConflict(t *testing.T) { }(l, context.Background()) _, err := l.Execute(context.Background(), core.Script{ - ScriptCore: core.ScriptCore{ - Plain: ` + Plain: ` send [USD/2 99] ( source=@world destination=@user:001 )`, - Vars: map[string]json.RawMessage{}, - }, + Vars: map[string]json.RawMessage{}, Reference: "tx_ref", }) require.NoError(t, err) _, err = l.Execute(context.Background(), core.Script{ - ScriptCore: core.ScriptCore{ - Plain: ` + Plain: ` send [USD/2 99] ( source=@unexists destination=@user:001 )`, - Vars: map[string]json.RawMessage{}, - }, + Vars: map[string]json.RawMessage{}, Reference: "tx_ref", }) require.Error(t, err)