From e4f24f3cd168c63d211fb1e49f1745496d7a3437 Mon Sep 17 00:00:00 2001 From: Determinant Date: Sat, 27 Jun 2020 23:57:42 -0400 Subject: make corrections and increase the version number; go mod is crappy and only accepts dep by version numbers. :( --- plugin/evm/vm.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugin/evm') 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{ -- cgit v1.2.3-70-g09d2