mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-03 11:41:48 +00:00
rpc: allow to use address, id or name instead of scripthash [Client]
... for getcontractstate RPC client method.
This commit is contained in:
parent
d3daaafbe4
commit
b8a88f9378
12 changed files with 220 additions and 99 deletions
|
@ -277,7 +277,10 @@ func TestCreateNEP5TransferTx(t *testing.T) {
|
|||
acc, err := wallet.NewAccountFromWIF(priv.WIF())
|
||||
require.NoError(t, err)
|
||||
|
||||
tx, err := c.CreateNEP5TransferTx(acc, util.Uint160{}, client.GasContractHash, 1000, 0)
|
||||
gasContractHash, err := c.GetNativeContractHash("gas")
|
||||
require.NoError(t, err)
|
||||
|
||||
tx, err := c.CreateNEP5TransferTx(acc, util.Uint160{}, gasContractHash, 1000, 0)
|
||||
require.NoError(t, err)
|
||||
require.NoError(t, acc.SignTx(tx))
|
||||
require.NoError(t, chain.VerifyTx(tx))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue