diff options
author | aaronbuchwald <[email protected]> | 2020-11-30 12:22:29 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2020-11-30 12:22:29 -0500 |
commit | cfc11729d0f24b8e42a3f9cbcf7534e2db09d720 (patch) | |
tree | 9478961d310c5b69ca65fc9551ef9976b1d01da5 /plugin/evm/user.go | |
parent | ae4541f42a666fb5ae1c36d6f7423c3d9eb2c875 (diff) | |
parent | 415b1eb564efc70cf7e673358286e19de8551fbf (diff) |
Merge pull request #62 from ava-labs/devv0.3.15
Dev
Diffstat (limited to 'plugin/evm/user.go')
-rw-r--r-- | plugin/evm/user.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/evm/user.go b/plugin/evm/user.go index 0ab1863..fc4587e 100644 --- a/plugin/evm/user.go +++ b/plugin/evm/user.go @@ -48,7 +48,7 @@ func (u *user) getAddresses() ([]common.Address, error) { return nil, err } addresses := []common.Address{} - if err := Codec.Unmarshal(bytes, &addresses); err != nil { + if _, err := Codec.Unmarshal(bytes, &addresses); err != nil { return nil, err } return addresses, nil @@ -94,7 +94,7 @@ func (u *user) putAddress(privKey *crypto.PrivateKeySECP256K1R) error { } } addresses = append(addresses, address) - bytes, err := Codec.Marshal(addresses) + bytes, err := Codec.Marshal(codecVersion, addresses) if err != nil { return err } |