Skip to content

Commit

Permalink
chore: update test page
Browse files Browse the repository at this point in the history
  • Loading branch information
bruceeewong committed Jun 17, 2024
1 parent 4d2c989 commit 43b63a6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/kit/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function App() {
});
// tx.setGasBudget(1000000);

if (opts?.isCustomExecution) {
if (!opts?.isCustomExecution) {
const resData = await wallet.signAndExecuteTransaction({
transaction: tx,
});
Expand All @@ -114,6 +114,7 @@ function App() {
signature: signature,
options: {
showRawEffects: true,
showObjectChanges: true,
},
});
return res;
Expand Down Expand Up @@ -243,7 +244,11 @@ function App() {
)}
{nftContractAddr && (
<button
onClick={() => handleSignAndExecuteTransaction(nftContractAddr)}
onClick={() =>
handleSignAndExecuteTransaction(nftContractAddr, {
isCustomExecution: true,
})
}
>
Sign + Execute Transaction
</button>
Expand Down

0 comments on commit 43b63a6

Please sign in to comment.