From 545564c202da6dea09c8edcb815b69137f58f2da Mon Sep 17 00:00:00 2001 From: Dani Somoza Date: Wed, 3 May 2023 10:09:46 +0200 Subject: [PATCH] docs: update salt nonce param reference in the deploy method (#421) --- packages/protocol-kit/README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/protocol-kit/README.md b/packages/protocol-kit/README.md index d17cb11e5..e7fe146d3 100644 --- a/packages/protocol-kit/README.md +++ b/packages/protocol-kit/README.md @@ -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 = { @@ -232,9 +232,10 @@ const safeAccountConfig: SafeAccountConfig = { payment, // Optional paymentReceiver // Optional } -const safeDeploymentConfig: SafeDeploymentConfig = { saltNonce } -const safeSdk = await safeFactory.deploySafe({ safeAccountConfig, safeDeploymentConfig }) +const saltNonce = '' + +const safeSdk = await safeFactory.deploySafe({ safeAccountConfig, saltNonce }) ``` Optionally, some properties can be passed as execution options: