Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
Refactor migration unstake arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
snoopy1412 committed Sep 29, 2024
1 parent 81c58ab commit 4bb9ecc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/migration/migration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,15 @@ export function MigrationModal({ isOpen, maskClosable = true, onClose = () => un
setStep1Busy(true);

try {
console.log("functionName unstake");
console.log("args [ringAmount]", stakedRing);
console.log("args [depositIds]", stakedDeposits);

const { hash } = await writeContract({
address: contract.staking.address,
abi: (await import(`@/config/abi/${contract.staking.abiFile}`)).default,
functionName: "unstake",
args: [stakedRing || 0n, stakedDeposits || []],
args: [stakedRing, stakedDeposits],
});

const receipt = await waitForTransaction({ hash });
Expand Down

0 comments on commit 4bb9ecc

Please sign in to comment.