diff --git a/pkg/core/blockchain.go b/pkg/core/blockchain.go index f9e930737..49ad24ef1 100644 --- a/pkg/core/blockchain.go +++ b/pkg/core/blockchain.go @@ -708,7 +708,11 @@ func (bc *Blockchain) storeBlock(block *block.Block) error { } amount, ok := arr[3].Value().(*big.Int) if !ok { - continue + bs, ok := arr[3].Value().([]byte) + if !ok { + continue + } + amount = emit.BytesToInt(bs) } // TODO: #498 _, _, _, _ = op, from, to, amount