Skip to content

Commit

Permalink
test: add funding test
Browse files Browse the repository at this point in the history
  • Loading branch information
iluxonchik committed Mar 14, 2024
1 parent 512f1c8 commit 945a1aa
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,20 @@ describe('ZKL Token Smart Contract', () => {
console.log(txn.toJSON());
});

describe('Funding Checks', () => {
it('Funding a $ZKL bounty suceeds', async () => {
const fundTx: Mina.Transaction = await Mina.transaction(
feePayer.toPublicKey(), () => {
//AccountUpdate.fundNewAccount(feePayer.toPublicKey());
zkAppInstance.fundBounty(feePayer.toPublicKey(), UInt64.from(1), UInt64.from(1));
});

console.log("Proving fund transaction...")
await fundTx.prove();
await fundTx.sign([feePayer]).send();
console.log("Mint transaction proved!");
});

});

});

0 comments on commit 945a1aa

Please sign in to comment.