From 1f6929d2c073ed4b735e0f60eb8282200262f60b Mon Sep 17 00:00:00 2001 From: Aaron Buchwald Date: Mon, 21 Dec 2020 12:13:21 -0500 Subject: Switch to using new default for linear codec --- plugin/evm/vm.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plugin/evm') diff --git a/plugin/evm/vm.go b/plugin/evm/vm.go index 7634ca7..343b4ec 100644 --- a/plugin/evm/vm.go +++ b/plugin/evm/vm.go @@ -15,7 +15,6 @@ import ( "time" "github.com/ava-labs/avalanchego/codec/linearcodec" - "github.com/ava-labs/avalanchego/codec/reflectcodec" "github.com/ava-labs/coreth" "github.com/ava-labs/coreth/core" @@ -125,7 +124,7 @@ var Codec codec.Manager func init() { Codec = codec.NewDefaultManager() - c := linearcodec.New(reflectcodec.DefaultTagName, 1<<20) + c := linearcodec.NewDefault() errs := wrappers.Errs{} errs.Add( @@ -418,7 +417,7 @@ func (vm *VM) Initialize( // so [vm.baseCodec] is a dummy codec use to fulfill the secp256k1fx VM // interface. The fx will register all of its types, which can be safely // ignored by the VM's codec. - vm.baseCodec = linearcodec.New(reflectcodec.DefaultTagName, 1<<20) + vm.baseCodec = linearcodec.NewDefault() return vm.fx.Initialize(vm) } -- cgit v1.2.3-70-g09d2