Skip to content

Commit

Permalink
docs: update salt nonce param reference in the deploy method (#421)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniSomoza authored May 3, 2023
1 parent f7cd9f6 commit 545564c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/protocol-kit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ const safeAccountConfig: SafeAccountConfig = {
const safeSdk = await safeFactory.deploySafe({ safeAccountConfig })
```
This method can optionally receive the `safeDeploymentConfig` parameter to define the `saltNonce`.
This method can optionally receive the `saltNonce` parameter.
```js
const safeAccountConfig: SafeAccountConfig = {
Expand All @@ -232,9 +232,10 @@ const safeAccountConfig: SafeAccountConfig = {
payment, // Optional
paymentReceiver // Optional
}
const safeDeploymentConfig: SafeDeploymentConfig = { saltNonce }

const safeSdk = await safeFactory.deploySafe({ safeAccountConfig, safeDeploymentConfig })
const saltNonce = '<YOUR_CUSTOM_VALUE>'

const safeSdk = await safeFactory.deploySafe({ safeAccountConfig, saltNonce })
```
Optionally, some properties can be passed as execution options:
Expand Down

0 comments on commit 545564c

Please sign in to comment.