Skip to content

Commit

Permalink
trx test
Browse files Browse the repository at this point in the history
  • Loading branch information
lizhenchun committed Nov 11, 2021
1 parent 56a09d2 commit ca2f680
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions qa/trx/transact_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ func TestTransaction(t *testing.T) {
to := "TSGYZ3VAVsa2SgoYhV7mfqnde89zTU7zNh"
sendAmount := big.NewInt(50)
contract := trx.NewErc20Contract(trc20Addr, client.RpcClient)
fmt.Print("Contract name: ")
fmt.Println(contract.Name())
fmt.Print("Contract symbol: ")
fmt.Println(contract.Symbol())
fmt.Print("Contract decimals: ")
fmt.Println(contract.Decimals())

txId, err := contract.Transfer(w, to, sendAmount, 999999)
require.NoError(t, err)

Expand Down

0 comments on commit ca2f680

Please sign in to comment.