forked from TrueCloudLab/neoneo-go
client: allow transfer method to read states
Makes no sense disabling it with writes enabled. Fixes #1725.
This commit is contained in:
parent
2a1e33b8c9
commit
8cd37c781c
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue