aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/zoo/client/client.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/zoo/client/client.go')
-rw-r--r--cmd/zoo/client/client.go7
1 files changed, 6 insertions, 1 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)