Skip to content

Commit

Permalink
remove uesless code
Browse files Browse the repository at this point in the history
  • Loading branch information
chenfengjin committed Aug 9, 2021
1 parent 456d061 commit 2d19b83
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions kernel/evm/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,6 @@ func (p *proxy) sendRawTransaction(ctx contract.KContext) (*contract.Response, e

if len(rawTx.Data) == 0 {
from := pub.GetAddress()
//xfrom, err := evm.EVMAddressToXchain(from)
//if err != nil {
// return nil, err
//}
//xto, err := evm.EVMAddressToXchain(to)
//if err != nil {
// return nil, err
//}
amount := balance.WeiToNative(rawTx.Value)

if err := ctx.Transfer(from.String(), to.String(), amount); err != nil {
Expand Down

0 comments on commit 2d19b83

Please sign in to comment.