aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm/vm.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/evm/vm.go')
-rw-r--r--plugin/evm/vm.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugin/evm/vm.go b/plugin/evm/vm.go
index 343b4ec..50623c3 100644
--- a/plugin/evm/vm.go
+++ b/plugin/evm/vm.go
@@ -201,7 +201,7 @@ type VM struct {
genlock sync.Mutex
txSubmitChan <-chan struct{}
atomicTxSubmitChan chan struct{}
- baseCodec codec.Codec
+ baseCodec codec.Registry
codec codec.Manager
clock timer.Clock
txFee uint64
@@ -227,6 +227,9 @@ func (vm *VM) getAtomicTx(block *types.Block) *Tx {
// Codec implements the secp256k1fx interface
func (vm *VM) Codec() codec.Manager { return vm.codec }
+// CodecRegistry implements the secp256k1fx interface
+func (vm *VM) CodecRegistry() codec.Registry { return vm.baseCodec }
+
// Clock implements the secp256k1fx interface
func (vm *VM) Clock() *timer.Clock { return &vm.clock }