From 4a1eb7db944fcb07ee85964ee8b34c19e3630d3d Mon Sep 17 00:00:00 2001 From: Aaron Buchwald Date: Mon, 21 Dec 2020 12:19:21 -0500 Subject: Add CodecRegistry to comply with secp fx interface --- plugin/evm/vm.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plugin/evm') 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 } -- cgit v1.2.3-70-g09d2