Skip to content

Commit

Permalink
update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
du5 committed Jul 30, 2022
1 parent 7794a6c commit 6c8e694
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func main() {
```
## demo require

- bsc testnet account balance is greater than 2 tbnb
- bsc testnet account balance is greater than 0.1 tbnb

### test demo selfTransfer

Expand Down
2 changes: 1 addition & 1 deletion demo/multiTransfer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func main() {

countWallet := len(conf.Wallet)
gasPrice, _ := client.SuggestGasPrice(context.Background())
value := big.NewInt(2e18)
value := big.NewInt(1e17)

var rawTxs []hexutil.Bytes
// var txs []*types.Transaction
Expand Down
4 changes: 2 additions & 2 deletions demo/selfTransfer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ func main() {
log.Panicln(err.Error())
}

value := big.NewInt(2e18)
value := big.NewInt(1e17)
gasLimit := uint64(21000)

gasPrice, _ := client.SuggestGasPrice(context.Background())

var rawTxs []hexutil.Bytes
// var txs []*types.Transaction
for k := range make([]int, 10) {
for k := range make([]int, 2) {
tx := types.NewTransaction(nonce+uint64(k), fromAddress, value, gasLimit, gasPrice, nil)
signedTx, err := types.SignTx(tx, types.NewEIP155Signer(chainID), privateKey)
if err != nil {
Expand Down

0 comments on commit 6c8e694

Please sign in to comment.