smartcontract: allow to pass nil as parameter to (*Invoker).Call
Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This commit is contained in:
parent
862c2e4ed3
commit
c926d53869
2 changed files with 7 additions and 0 deletions
|
@ -690,6 +690,11 @@ func TestParameterFromValue(t *testing.T) {
|
|||
expType: PublicKeyType,
|
||||
expVal: pk2.PublicKey().Bytes(),
|
||||
},
|
||||
{
|
||||
value: nil,
|
||||
expType: AnyType,
|
||||
expVal: nil,
|
||||
},
|
||||
{
|
||||
value: [][]byte{{1, 2, 3}, {3, 2, 1}},
|
||||
expType: ArrayType,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue