forked from TrueCloudLab/neoneo-go
core: allow transfer amount to be bytes
VM can produce both big.Int and []byte because they are converted to each other on demand.
This commit is contained in:
parent
d03b2ef4a1
commit
3a510b9dad
1 changed files with 5 additions and 1 deletions
|
@ -707,9 +707,13 @@ func (bc *Blockchain) storeBlock(block *block.Block) error {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
amount, ok := arr[3].Value().(*big.Int)
|
amount, ok := arr[3].Value().(*big.Int)
|
||||||
|
if !ok {
|
||||||
|
bs, ok := arr[3].Value().([]byte)
|
||||||
if !ok {
|
if !ok {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
amount = emit.BytesToInt(bs)
|
||||||
|
}
|
||||||
// TODO: #498
|
// TODO: #498
|
||||||
_, _, _, _ = op, from, to, amount
|
_, _, _, _ = op, from, to, amount
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue