Skip to content

Commit

Permalink
fix: use starknet.js v6
Browse files Browse the repository at this point in the history
  • Loading branch information
irisdv committed Jun 14, 2024
1 parent e722433 commit 37680b9
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 162 deletions.
5 changes: 4 additions & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,10 @@ export default function Home() {
executeBefore: number
) => {
try {
const signature = await starknetAccount?.signMessage(typedData);
if (!starknetAccount) return;
console.log("starknetAccount", starknetAccount);
const signature = await starknetAccount.signMessage(typedData);
console.log("signature", signature);
const virtualTxId = await starknetResetButton(
starknetAccount?.address as string,
signature as Signature,
Expand Down
Loading

0 comments on commit 37680b9

Please sign in to comment.