diff --git a/docs/developers/dapp-developer/native-bindings.md b/docs/developers/dapp-developer/native-bindings.md index 67d92ea811..66de3fe205 100644 --- a/docs/developers/dapp-developer/native-bindings.md +++ b/docs/developers/dapp-developer/native-bindings.md @@ -223,12 +223,12 @@ func main() { if err != nil { log.Fatalf("Failed to connect to the Ethereum client: %v", err) } - auth, err := bind.NewTransactor(strings.NewReader(key), "<>") + auth, err := bind.NewTransactorWithChainID(strings.NewReader(key), "<>", ChainId) if err != nil { log.Fatalf("Failed to create authorized transactor: %v", err) } // Deploy the contract passing the newly created `auth` and `conn` vars - address, tx, instance, err := DeployStorage(auth, conn), new(big.Int), "Storage contract in Go!", 0, "Go!") + address, tx, instance, err := DeployStorage(auth, conn) if err != nil { log.Fatalf("Failed to deploy new storage contract: %v", err) }