Skip to main content
Barebox's user avatar
Barebox's user avatar
Barebox's user avatar
Barebox
  • Member for 2 years, 5 months
  • Last seen more than a month ago
awarded
answered
Loading…
comment
How can I test the anchor has_one check?
Since you're initing an account at with a keypair, it will need to sign for the transaction, as well as the payer, in order to create the account. If you leave signers blank, the provider wallet will sign if the IDL detects that it's in the instruction as a signer. You can explicitly pass the keypair in as a signer using (provider.wallet as anchor.Wallet).payer or just provider.wallet.payer.
Loading…
answered
Loading…
Loading…
Loading…
Loading…
awarded
Loading…