Skip to content

Commit

Permalink
update ATX TO ATP
Browse files Browse the repository at this point in the history
  • Loading branch information
rjman-self committed Mar 22, 2021
1 parent 34466a2 commit c7af3ee
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 44 deletions.
9 changes: 4 additions & 5 deletions accounts/abi/bind/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,10 @@ func (c *BoundContract) transact(opts *TransactOpts, contract *common.Address, i
return nil, err
}

from, err := common.EthToPlaton(opts.From[:])
to, err := common.EthToPlaton(c.address[:])

fmt.Printf("from is %v\n", from)
fmt.Printf("to is %v\n", to)
//from, err := common.EthToPlaton(opts.From[:])
//to, err := common.EthToPlaton(c.address[:])
//fmt.Printf("from is %v\n", from)
//fmt.Printf("to is %v\n", to)

if err := c.transactor.SendTransaction(ensureContext(opts.Context), signedTx); err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion common/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func EthToPlaton(eth []byte) (string, error) {
return "", fmt.Errorf("encoding bech32 failed: %w", err)
}

return bech32.Encode("atx", converted)
return bech32.Encode("atp", converted)
}

// UnmarshalText parses a hash in hex syntax.
Expand Down
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module github.com/ethereum/go-ethereum

go 1.13

replace github.com/ChainSafe/chainbridge-utils v1.0.6 => github.com/rjman-self/chainbridge-utils v1.0.7

require (
Expand Down

0 comments on commit c7af3ee

Please sign in to comment.