Skip to content

Conversation

@thestriver
Copy link

Fixes error and successfully runs 9 tests.
Screenshot 2023-11-25 at 2 50 39 PM
Withdraw_offfer handler supports only one argument.

pub fn handler(ctx: Context<WithdrawOffer>, 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<unknown, EmptyDefined>>'.
Type '[BN, PublicKey]' is not assignable to type '[BN]'.
Source has 2 element(s) but target allows only 1.

Fixes error and successfully runs 9 tests. 
Withdraw_offfer handler supports only one argument
```
pub fn handler(ctx: Context<WithdrawOffer>, 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<unknown, EmptyDefined>>'.
  Type '[BN, PublicKey]' is not assignable to type '[BN]'.
    Source has 2 element(s) but target allows only 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant