From 38aa136745ff1f6d9b8504c484774a1a2bb14e5f Mon Sep 17 00:00:00 2001 From: Mahmud Adeleye Date: Sat, 25 Nov 2023 14:50:10 -0700 Subject: [PATCH] Update nft-lend-borrow.ts Fixes error and successfully runs 9 tests. Withdraw_offfer handler supports only one argument ``` pub fn handler(ctx: Context, minimum_balance_for_rent_exemption: u64) -> Result<()> { ``` Argument of type '[BN, PublicKey]' is not assignable to parameter of type 'ArgsTuple<[{ name: "minimumBalanceForRentExemption"; type: "u64"; }], DecodedHelper>'. Type '[BN, PublicKey]' is not assignable to type '[BN]'. Source has 2 element(s) but target allows only 1. --- tests/nft-lend-borrow.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/nft-lend-borrow.ts b/tests/nft-lend-borrow.ts index ecd00a2..28129a9 100644 --- a/tests/nft-lend-borrow.ts +++ b/tests/nft-lend-borrow.ts @@ -735,7 +735,7 @@ describe("nft-lend-borrow", () => { await program.methods .withdrawOffer( new anchor.BN(minimumBalanceForRentExemption), - collectionId + //collectionId ) .accounts({ offerLoan: offerPDA,