diff options
author | Wei-Ning Huang <w@byzantine-lab.io> | 2019-07-05 11:23:40 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-09-17 16:57:30 +0800 |
commit | ee0d75c08880887fe23279364f138fd18a334428 (patch) | |
tree | a3a4cbda76fc0d7d0ff37ae6ff726749893ad6dd | |
parent | d55aa9164efef2f58c30ee5a534c690df80f3e2d (diff) | |
download | go-tangerine-ee0d75c08880887fe23279364f138fd18a334428.tar go-tangerine-ee0d75c08880887fe23279364f138fd18a334428.tar.gz go-tangerine-ee0d75c08880887fe23279364f138fd18a334428.tar.bz2 go-tangerine-ee0d75c08880887fe23279364f138fd18a334428.tar.lz go-tangerine-ee0d75c08880887fe23279364f138fd18a334428.tar.xz go-tangerine-ee0d75c08880887fe23279364f138fd18a334428.tar.zst go-tangerine-ee0d75c08880887fe23279364f138fd18a334428.zip |
zoo: fix feeder
-rw-r--r-- | cmd/zoo/client/client.go | 7 | ||||
-rw-r--r-- | cmd/zoo/monkey/feeder.go | 1 |
2 files changed, 6 insertions, 2 deletions
diff --git a/cmd/zoo/client/client.go b/cmd/zoo/client/client.go index 468035b5d..92c22a580 100644 --- a/cmd/zoo/client/client.go +++ b/cmd/zoo/client/client.go @@ -156,11 +156,16 @@ func (c *Client) Deploy( panic(err) } + gasPrice, err := c.SuggestGasPrice(context.Background()) + if err != nil { + panic(err) + } + tx := types.NewContractCreation( nonce, amount, gas, - big.NewInt(1e9), + gasPrice, data) signer := types.NewEIP155Signer(c.networkID) diff --git a/cmd/zoo/monkey/feeder.go b/cmd/zoo/monkey/feeder.go index 59ecfbf0b..095cb90ab 100644 --- a/cmd/zoo/monkey/feeder.go +++ b/cmd/zoo/monkey/feeder.go @@ -120,6 +120,5 @@ loop: nonce++ time.Sleep(time.Duration(config.Sleep) * time.Millisecond) } - return nonce } |