Skip to content

Commit a355fdb

Browse files
Merge branch 'main' into fix/code-snippets
2 parents e9d0fc1 + 88ede47 commit a355fdb

File tree

36 files changed

+3617
-6641
lines changed

36 files changed

+3617
-6641
lines changed

delegation-toolkit/concepts/environment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ import {
206206
// remove-end
207207

208208
// add-start
209-
+ const evniroment: DeleGatorEnvironment = {
209+
+ const environment: DeleGatorEnvironment = {
210210
+ SimpleFactory: "0x124..",
211211
+ // ...
212212
+ implementations: {

delegation-toolkit/experimental/erc-7710-redeem-delegations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ if (accountMetadata?.length !== 0) {
188188

189189
// This transaction will deploy the delegator account.
190190
const hash = walletClient.sendTransaction({
191-
to: accountMetadata.factory,
192-
data: accountMetadata.factoryData,
191+
to: accountMetadata[0].factory,
192+
data: accountMetadata[0].factoryData,
193193
});
194194

195195
// You should wait for transaction to be successfully executed.

delegation-toolkit/how-to/create-delegation/create-custom-caveat-enforcer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ import {
9292
import { toHex } from "viem";
9393
import { delegatorSmartAccount } from "./config.ts";
9494

95-
const environment = delegatorSmartAccount.enviroment;
95+
const environment = delegatorSmartAccount.environment;
9696

9797
// Replace this with the address where the AfterTimestampEnforcer.sol contract is deployed.
9898
const afterTimestampEnforcer = "0x22Ae4c4919C3aB4B5FC309713Bf707569B74876F";

delegation-toolkit/reference/api/experimental-actions/wallet-client.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ if (accountMetadata?.length !== 0) {
123123

124124
// This transaction will deploy the delegator account.
125125
const hash = walletClient.sendTransaction({
126-
to: accountMetadata.factory,
127-
data: accountMetadata.factoryData,
126+
to: accountMetadata[0].factory,
127+
data: accountMetadata[0].factoryData,
128128
});
129129

130130
// You should wait for transaction to be successfully executed.

gator_versioned_docs/version-0.10.1/experimental/erc-7710-redeem-delegations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ if (accountMetadata?.length !== 0) {
191191

192192
// This transaction will deploy the delegator account.
193193
const hash = walletClient.sendTransaction({
194-
to: accountMetadata.factory,
195-
data: accountMetadata.factoryData,
194+
to: accountMetadata[0].factory,
195+
data: accountMetadata[0].factoryData,
196196
});
197197

198198
// You should wait for transaction to be successfully executed.

gator_versioned_docs/version-0.10.1/how-to/create-delegation/create-custom-caveat-enforcer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ import {
9292
import { toHex } from "viem";
9393
import { delegatorSmartAccount } from "./config.ts";
9494

95-
const environment = delegatorSmartAccount.enviroment;
95+
const environment = delegatorSmartAccount.environment;
9696

9797
// Replace this with the address where the AfterTimestampEnforcer.sol contract is deployed.
9898
const afterTimestampEnforcer = "0x22Ae4c4919C3aB4B5FC309713Bf707569B74876F";

gator_versioned_docs/version-0.10.1/how-to/redeem-delegation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ import {
8484
toMetaMaskSmartAccount,
8585
} from "@metamask/delegation-toolkit";
8686
import { privateKeyToAccount } from "viem/accounts";
87-
improt { publicClient } from "./client.ts"
87+
import { publicClient } from "./client.ts"
8888

8989
const delegateAccount = privateKeyToAccount("0x...");
9090

gator_versioned_docs/version-0.10.2/experimental/erc-7710-redeem-delegations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ if (accountMetadata?.length !== 0) {
191191

192192
// This transaction will deploy the delegator account.
193193
const hash = walletClient.sendTransaction({
194-
to: accountMetadata.factory,
195-
data: accountMetadata.factoryData,
194+
to: accountMetadata[0].factory,
195+
data: accountMetadata[0].factoryData,
196196
});
197197

198198
// You should wait for transaction to be successfully executed.

gator_versioned_docs/version-0.10.2/how-to/create-delegation/create-custom-caveat-enforcer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ import {
9292
import { toHex } from "viem";
9393
import { delegatorSmartAccount } from "./config.ts";
9494

95-
const environment = delegatorSmartAccount.enviroment;
95+
const environment = delegatorSmartAccount.environment;
9696

9797
// Replace this with the address where the AfterTimestampEnforcer.sol contract is deployed.
9898
const afterTimestampEnforcer = "0x22Ae4c4919C3aB4B5FC309713Bf707569B74876F";

gator_versioned_docs/version-0.10.2/how-to/redeem-delegation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ import {
8484
toMetaMaskSmartAccount,
8585
} from "@metamask/delegation-toolkit";
8686
import { privateKeyToAccount } from "viem/accounts";
87-
improt { publicClient } from "./client.ts"
87+
import { publicClient } from "./client.ts"
8888

8989
const delegateAccount = privateKeyToAccount("0x...");
9090

0 commit comments

Comments
 (0)