Skip to content

Commit 88ede47

Browse files
authored
fix: correct parameter values in redeem functions across the repository (#2109)
1 parent de06883 commit 88ede47

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

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/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.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.11.0/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.

gator_versioned_docs/version-0.11.0/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.

0 commit comments

Comments
 (0)