diff options
author | Aaron Buchwald <[email protected]> | 2020-12-21 12:13:21 -0500 |
---|---|---|
committer | Aaron Buchwald <[email protected]> | 2020-12-21 12:13:21 -0500 |
commit | 1f6929d2c073ed4b735e0f60eb8282200262f60b (patch) | |
tree | 19c965e50b6b7d415bd3a7b20b468569b6d19d55 /plugin | |
parent | 3f485d21b7f0be08ee2256a26b7ff856fcd448cf (diff) |
Switch to using new default for linear codec
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/evm/vm.go | 5 |
1 files changed, 2 insertions, 3 deletions
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) } |