aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
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
}