diff options
author | Determinant <[email protected]> | 2020-08-19 23:34:12 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2020-08-19 23:34:12 -0400 |
commit | 40879ea67433b73b464bd8b012a9809fbb646cfd (patch) | |
tree | a11646c8f69a217c936322bd937915b2ecc7bdba /plugin/evm/user.go | |
parent | 0b934ef60fd652de038a21e6f25691b11cea7121 (diff) |
WIP: C-to-X transfer
Diffstat (limited to 'plugin/evm/user.go')
-rw-r--r-- | plugin/evm/user.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugin/evm/user.go b/plugin/evm/user.go index 5d7a037..fbf2981 100644 --- a/plugin/evm/user.go +++ b/plugin/evm/user.go @@ -11,7 +11,6 @@ import ( "github.com/ava-labs/gecko/ids" "github.com/ava-labs/gecko/utils/crypto" "github.com/ava-labs/go-ethereum/common" - ethcrypto "github.com/ava-labs/go-ethereum/crypto" ) // Key in the database whose corresponding value is the list of @@ -72,8 +71,7 @@ func (u *user) putAddress(privKey *crypto.PrivateKeySECP256K1R) error { return errKeyNil } - address := ethcrypto.PubkeyToAddress( - (*privKey.PublicKey().(*crypto.PublicKeySECP256K1R).ToECDSA())) // address the privKey controls + address := GetEthAddress(privKey) // address the privKey controls controlsAddress, err := u.controlsAddress(address) if err != nil { return err |