aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm/user.go
diff options
context:
space:
mode:
authorAaron Buchwald <[email protected]>2020-11-25 11:20:36 -0500
committerAaron Buchwald <[email protected]>2020-11-25 11:25:20 -0500
commit61479754d935e36993f7144d70d7c518cdb26a36 (patch)
treece38ae6325561029628e09929615e141e7f3b144 /plugin/evm/user.go
parent44c27ae8f05bb7f1076d9159d4106afd41e2e010 (diff)
Add avax API client and upgrade to avalanchego v1.0.5-client
Diffstat (limited to 'plugin/evm/user.go')
-rw-r--r--plugin/evm/user.go4
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
}