Skip to content

Commit

Permalink
fix: disable Vale in code snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
dasanra authored Oct 25, 2024
1 parent 8242563 commit b66551c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ For more detailed information, see the [Protocol Kit Reference](../../../protoco

First, you need to install the Protocol Kit.

{/* <!-- vale off --> */}

<CH.Section>
<CH.Code style={{ boxShadow: 'none' }}>
```bash pnpm
Expand All @@ -32,6 +34,8 @@ First, you need to install the Protocol Kit.
</CH.Code>
</CH.Section>

{/* <!-- vale on --> */}

## Steps

<Steps>
Expand All @@ -52,7 +56,7 @@ import { sepolia, gnosisChiado } from 'viem/chains'

### Create a signer

Firstly, you need to get a signer to execute the deployment transaction in each chain. this example uses a private key, but any way to get an `EIP-1193` compatible signer can be used.
You need a signer to instantiate the Protocol Kit. This example uses a private key to obtain a signer, but other `EIP-1193` compatible signers are also supported. For more detailed information on the available options, please refer to the [Protocol Kit reference](../../reference/safe.mdx#initialization).

{/* <!-- vale off --> */}

Expand Down Expand Up @@ -178,6 +182,8 @@ Repeat the initialization and deployment for Chiado chain using the same `predic
console.log('Safe Address:', await protocolKitChiado.getAddress())
```

{/* <!-- vale on --> */}

</Steps>

## Recap and further reading
Expand Down
9 changes: 9 additions & 0 deletions pages/sdk/protocol-kit/guides/safe-deployment/deploy-safe.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ For more detailed information, see the [Protocol Kit Reference](../../../protoco

First, you need to install the Protocol Kit.

{/* <!-- vale off --> */}

<CH.Section>
<CH.Code style={{ boxShadow: 'none' }}>
```bash pnpm
Expand All @@ -30,6 +32,8 @@ First, you need to install the Protocol Kit.
</CH.Code>
</CH.Section>

{/* <!-- vale on --> */}

## Steps

<Steps>
Expand Down Expand Up @@ -127,10 +131,14 @@ Once we create the deployment transaction object, we can execute it using the si
const txReceipt = await client.waitForTransactionReceipt({ hash: txHash })
```

{/* <!-- vale on --> */}

### Reconnect the Protocol Kit to the newly deployed Safe

Once the deployment transaction has been successfully executed, it's necessary to reconnect your Protocol Kit instance to the address of the newly created Safe using the `connect` Method

{/* <!-- vale off --> */}

```typescript
// Reconnect to the newly deployed Safe using the protocol-kit
protocolKit = await protocolKit.connect({ safeAddress })
Expand All @@ -142,6 +150,7 @@ console.log("Safe Owners:", await protocolKit.getOwners())
console.log("Safe Threshold:", await protocolKit.getThreshold())
```

{/* <!-- vale on --> */}

</Steps>

Expand Down

0 comments on commit b66551c

Please sign in to comment.