Skip to content

Commit e7c0603

Browse files
ERC-7715 Hotfix (#2394)
* 7715 hotfix * update versioned docs
1 parent 2ebc477 commit e7c0603

File tree

6 files changed

+0
-40
lines changed

6 files changed

+0
-40
lines changed

delegation-toolkit/guides/erc7715/execute-on-metamask-users-behalf.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ import { calldata } from "./config.ts";
201201
// These properties must be extracted from the permission response.
202202
const permissionsContext = grantedPermissions[0].context;
203203
const delegationManager = grantedPermissions[0].signerMeta.delegationManager;
204-
const accountMetadata = grantedPermissions[0].accountMeta;
205204

206205
// USDC address on Ethereum Sepolia.
207206
const tokenAddress = "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238";
@@ -222,7 +221,6 @@ const userOperationHash = await bundlerClient.sendUserOperationWithDelegation({
222221
// Appropriate values must be used for fee-per-gas.
223222
maxFeePerGas: 1n,
224223
maxPriorityFeePerGas: 1n,
225-
accountMetadata,
226224
});
227225
```
228226

delegation-toolkit/reference/erc7715/bundler-client.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ import { sessionAccount, bundlerClient, publicClient } from "./client.ts";
4444
// These properties must be extracted from the permission response.
4545
const permissionsContext = permissionsResponse[0].context;
4646
const delegationManager = permissionsResponse[0].signerMeta.delegationManager;
47-
const accountMetadata = permissionsResponse[0].accountMeta;
4847

4948
// Calls without permissionsContext and delegationManager will be executed
5049
// as a normal user operation.
@@ -63,7 +62,6 @@ const userOperationHash = await bundlerClient.sendUserOperationWithDelegation({
6362
// Appropriate values must be used for fee-per-gas.
6463
maxFeePerGas: 1n,
6564
maxPriorityFeePerGas: 1n
66-
accountMetadata,
6765
});
6866
```
6967

delegation-toolkit/reference/erc7715/wallet-client.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -112,22 +112,6 @@ import { walletClient, publicClient } from "./client.ts";
112112
// `grantPermissions` action to learn how to request permissions.
113113
const permissionsContext = permissionsResponse[0].context;
114114
const delegationManager = permissionsResponse[0].signerMeta.delegationManager;
115-
const accountMetadata = permissionsResponse[0].accountMeta;
116-
117-
if (accountMetadata?.length !== 0) {
118-
// If the granted permission contains accountMetadata, this must be executed before attempting to
119-
// redeem the delegation.
120-
121-
// This transaction will deploy the delegator account.
122-
const hash = walletClient.sendTransaction({
123-
to: accountMetadata[0].factory,
124-
data: accountMetadata[0].factoryData,
125-
});
126-
127-
// You should wait for the transaction to be successfully executed.
128-
// You can use the TransactionReceipt.status to verify the state.
129-
await publicClient.waitForTransactionReceipt( { hash });
130-
}
131115

132116
const hash = walletClient.sendTransactionWithDelegation({
133117
chain,

gator_versioned_docs/version-0.13.0/guides/erc7715/execute-on-metamask-users-behalf.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ import { calldata } from "./config.ts";
201201
// These properties must be extracted from the permission response.
202202
const permissionsContext = grantedPermissions[0].context;
203203
const delegationManager = grantedPermissions[0].signerMeta.delegationManager;
204-
const accountMetadata = grantedPermissions[0].accountMeta;
205204

206205
// USDC address on Ethereum Sepolia.
207206
const tokenAddress = "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238";
@@ -222,7 +221,6 @@ const userOperationHash = await bundlerClient.sendUserOperationWithDelegation({
222221
// Appropriate values must be used for fee-per-gas.
223222
maxFeePerGas: 1n,
224223
maxPriorityFeePerGas: 1n,
225-
accountMetadata,
226224
});
227225
```
228226

gator_versioned_docs/version-0.13.0/reference/erc7715/bundler-client.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ import { sessionAccount, bundlerClient, publicClient } from "./client.ts";
4444
// These properties must be extracted from the permission response.
4545
const permissionsContext = permissionsResponse[0].context;
4646
const delegationManager = permissionsResponse[0].signerMeta.delegationManager;
47-
const accountMetadata = permissionsResponse[0].accountMeta;
4847

4948
// Calls without permissionsContext and delegationManager will be executed
5049
// as a normal user operation.
@@ -63,7 +62,6 @@ const userOperationHash = await bundlerClient.sendUserOperationWithDelegation({
6362
// Appropriate values must be used for fee-per-gas.
6463
maxFeePerGas: 1n,
6564
maxPriorityFeePerGas: 1n
66-
accountMetadata,
6765
});
6866
```
6967

gator_versioned_docs/version-0.13.0/reference/erc7715/wallet-client.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -112,22 +112,6 @@ import { walletClient, publicClient } from "./client.ts";
112112
// `grantPermissions` action to learn how to request permissions.
113113
const permissionsContext = permissionsResponse[0].context;
114114
const delegationManager = permissionsResponse[0].signerMeta.delegationManager;
115-
const accountMetadata = permissionsResponse[0].accountMeta;
116-
117-
if (accountMetadata?.length !== 0) {
118-
// If the granted permission contains accountMetadata, this must be executed before attempting to
119-
// redeem the delegation.
120-
121-
// This transaction will deploy the delegator account.
122-
const hash = walletClient.sendTransaction({
123-
to: accountMetadata[0].factory,
124-
data: accountMetadata[0].factoryData,
125-
});
126-
127-
// You should wait for the transaction to be successfully executed.
128-
// You can use the TransactionReceipt.status to verify the state.
129-
await publicClient.waitForTransactionReceipt( { hash });
130-
}
131115

132116
const hash = walletClient.sendTransactionWithDelegation({
133117
chain,

0 commit comments

Comments
 (0)