mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-06 19:55:10 +00:00
stackitem: use Bool
item directly
It is always copied. Signed-off-by: Evgeniy Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
5aff82aef4
commit
cff8b1c24e
6 changed files with 40 additions and 44 deletions
|
@ -195,7 +195,7 @@ func compareItems(t *testing.T, a, b stackitem.Item) {
|
|||
require.Equal(t, val, ac.Value().(*big.Int).Int64())
|
||||
case *stackitem.ByteArray:
|
||||
require.Equal(t, val, bigint.FromBytes(ac.Value().([]byte)).Int64())
|
||||
case *stackitem.Bool:
|
||||
case stackitem.Bool:
|
||||
if ac.Value().(bool) {
|
||||
require.Equal(t, val, int64(1))
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue