aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/evm')
-rw-r--r--plugin/evm/vm.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/evm/vm.go b/plugin/evm/vm.go
index 93e2fe2..24fe98c 100644
--- a/plugin/evm/vm.go
+++ b/plugin/evm/vm.go
@@ -4,6 +4,7 @@
package evm
import (
+ "bytes"
"crypto/rand"
"encoding/json"
"errors"
@@ -305,7 +306,7 @@ func (vm *VM) ParseBlock(b []byte) (snowman.Block, error) {
return nil, err
}
// Coinbase must be zero on C-Chain
- if bytes.Compare(ethBlock.Coinbase(), coreth.ZeroAddr) != 0 {
+ if bytes.Compare(ethBlock.Coinbase().Bytes(), coreth.ZeroAddr.Bytes()) != 0 {
return nil, errInvalidBlock
}
block := &Block{