From 8cd37c781c1c81f3d1d156e858d57af12e52931b Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 11 Feb 2021 18:55:16 +0300 Subject: [PATCH] client: allow transfer method to read states Makes no sense disabling it with writes enabled. Fixes #1725. --- pkg/rpc/client/nep17.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/rpc/client/nep17.go b/pkg/rpc/client/nep17.go index 6257b58b6..80567808a 100644 --- a/pkg/rpc/client/nep17.go +++ b/pkg/rpc/client/nep17.go @@ -129,8 +129,8 @@ func (c *Client) CreateNEP17MultiTransferTx(acc *wallet.Account, gas int64, reci } w := io.NewBufBinWriter() for i := range recipients { - emit.AppCall(w.BinWriter, recipients[i].Token, "transfer", - callflag.WriteStates|callflag.AllowCall|callflag.AllowNotify, from, recipients[i].Address, recipients[i].Amount, data[i]) + emit.AppCall(w.BinWriter, recipients[i].Token, "transfer", callflag.All, + from, recipients[i].Address, recipients[i].Amount, data[i]) emit.Opcodes(w.BinWriter, opcode.ASSERT) } if w.Err != nil {