@@ -109,7 +109,7 @@ const delegation = createDelegation({
109109 // Address to which the delegation is being granted
110110 to: " 0x2B2dBd1D5fbeB77C4613B66e9F35dBfE12cB0488" ,
111111 // Alternatively you can use environment property of MetaMask smart account.
112- environment: getSmartAccountsEnvironment (sepolia .id );
112+ environment: getSmartAccountsEnvironment (sepolia .id ),
113113 scope: {
114114 type: " nativeTokenTransferAmount" ,
115115 // 0.001 ETH in wei format.
@@ -145,7 +145,7 @@ const delegation = createOpenDelegation({
145145 // Address that is granting the delegation
146146 from: " 0x7E48cA6b7fe6F3d57fdd0448B03b839958416fC1" ,
147147 // Alternatively you can use environment property of MetaMask smart account.
148- environment: getSmartAccountsEnvironment (sepolia .id );
148+ environment: getSmartAccountsEnvironment (sepolia .id ),
149149 scope: {
150150 type: " nativeTokenTransferAmount" ,
151151 // 0.001 ETH in wei format.
@@ -195,7 +195,7 @@ Decodes an ABI-encoded hex string to an array of delegations.
195195### Example
196196
197197``` ts
198- import { deocdeDelegation } from " @metamask/smart-accounts-kit/utils" ;
198+ import { decodeDelegations } from " @metamask/smart-accounts-kit/utils" ;
199199
200200const delegations = decodeDelegations (" 0x7f0db33d..c06aeeac" );
201201```
@@ -321,7 +321,7 @@ import { parseEther } from "viem";
321321export const delegation = createDelegation ({
322322 from: " 0x7E48cA6b7fe6F3d57fdd0448B03b839958416fC1" ,
323323 to: " 0x2B2dBd1D5fbeB77C4613B66e9F35dBfE12cB0488" ,
324- environment: getSmartAccountsEnvironment (sepolia .id );
324+ environment: getSmartAccountsEnvironment (sepolia .id ),
325325 scope: {
326326 type: " nativeTokenTransferAmount" ,
327327 // 0.001 ETH in wei format.
@@ -349,7 +349,7 @@ Encodes an array of delegations to an ABI-encoded hex string.
349349<TabItem value =" example.ts " >
350350
351351``` ts
352- import { enocdeDelegations } from " @metamask/smart-accounts-kit/utils" ;
352+ import { encodeDelegations } from " @metamask/smart-accounts-kit/utils" ;
353353import { delegation } from " ./delegation.ts" ;
354354
355355const encodedDelegations = encodeDelegations ([delegation ]);
@@ -366,7 +366,7 @@ import { parseEther } from "viem";
366366export const delegation = createDelegation ({
367367 from: " 0x7E48cA6b7fe6F3d57fdd0448B03b839958416fC1" ,
368368 to: " 0x2B2dBd1D5fbeB77C4613B66e9F35dBfE12cB0488" ,
369- environment: getSmartAccountsEnvironment (sepolia .id );
369+ environment: getSmartAccountsEnvironment (sepolia .id ),
370370 scope: {
371371 type: " nativeTokenTransferAmount" ,
372372 // 0.001 ETH in wei format.
0 commit comments