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/service.go | |
parent | 0b934ef60fd652de038a21e6f25691b11cea7121 (diff) |
WIP: C-to-X transfer
Diffstat (limited to 'plugin/evm/service.go')
-rw-r--r-- | plugin/evm/service.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugin/evm/service.go b/plugin/evm/service.go index 86bc706..3165ca7 100644 --- a/plugin/evm/service.go +++ b/plugin/evm/service.go @@ -201,8 +201,7 @@ func (service *AvaAPI) ImportKey(r *http.Request, args *ImportKeyArgs, reply *ap } // TODO: return eth address here - reply.Address, err = service.vm.FormatAddress( - ethcrypto.PubkeyToAddress(*(sk.PublicKey().(*crypto.PublicKeySECP256K1R).ToECDSA()))) + reply.Address, err = service.vm.FormatAddress(GetEthAddress(sk)) if err != nil { return fmt.Errorf("problem formatting address: %w", err) } |