Skip to content

Commit

Permalink
Fixed ABI SVM example
Browse files Browse the repository at this point in the history
  • Loading branch information
GabiDev45 committed Feb 28, 2024
1 parent 2bf623a commit a868e64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions src/components/Modules/CreateABISVM.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,14 @@ const CreateABISVM: React.FC<props> = () => {
const functionSelector = hexDataSlice(id("safeMint(address)"), 0, 4);

const sessionKeyData = await getABISVMSessionKeyData(sessionKeyEOA, {
destContract: "0x1758f42Af7026fBbB559Dc60EcE0De3ef81f665e",
destContract: "0xdd526eba63ef200ed95f0f0fb8993fe3e20a23d0",
functionSelector: functionSelector,
valueLimit: parseEther("0"),
rules: [
{
offset: 0,
condition: 2,
referenceValue: ethers.utils.hexZeroPad(
ethers.utils.parseEther("1000").toHexString(),
32
)
offset: 0, // offset 0 means we are checking first parameter of safeMint (recipient address)
condition: 0, // 0 = Condition.EQUAL
referenceValue: ethers.utils.hexZeroPad("0xd3C85Fdd3695Aee3f0A12B3376aCD8DC54020549", 32) // recipient address
},
],
});
Expand Down
2 changes: 1 addition & 1 deletion src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ export const erc20ModuleAddr = ERC20_SESSION_VALIDATION_MODULE;
export const managerModuleAddr = DEFAULT_SESSION_KEY_MANAGER_MODULE;
export const routerModuleAddr = DEFAULT_BATCHED_SESSION_ROUTER_MODULE;
export const mockSessionModuleAddr = "0x7Ba4a7338D7A90dfA465cF975Cc6691812C3772E";
export const ABI_SVM = "0x1431610824308bCDfA7b6F9cCB451d370f2a2F01";
export const ABI_SVM = "0x000006bC2eCdAe38113929293d241Cf252D91861";

0 comments on commit a868e64

Please sign in to comment.