aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorWei-Ning Huang <w@byzantine-lab.io>2019-07-05 11:23:40 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-09-17 16:57:30 +0800
commitee0d75c08880887fe23279364f138fd18a334428 (patch)
treea3a4cbda76fc0d7d0ff37ae6ff726749893ad6dd /cmd
parentd55aa9164efef2f58c30ee5a534c690df80f3e2d (diff)
downloadgo-tangerine-ee0d75c08880887fe23279364f138fd18a334428.tar.gz
go-tangerine-ee0d75c08880887fe23279364f138fd18a334428.tar.zst
go-tangerine-ee0d75c08880887fe23279364f138fd18a334428.zip
zoo: fix feeder
Diffstat (limited to 'cmd')
-rw-r--r--cmd/zoo/client/client.go7
-rw-r--r--cmd/zoo/monkey/feeder.go1
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
}