{
"name": "helloWorld",
"accounts": [
{
"name": "authority",
"isMut": false,
"isSigner": false
},
{
"name": "helloQueue",
"isMut": false,
"isSigner": true
}
],
"args": [],
"returns": {
"defined": "clockwork_sdk::queue_program::accounts::CrankResponse"
}
}
From the above IDL, I am gonna run the helloWorld function. What I tried is:
const helloworldProgram: anchor.Program<HelloClockwork> =
new anchor.Program(IDL, HELLO_CLOCKWORK_PROGRAM_ID, anchorProvider);
const something = await helloworldProgram.methods.helloWorld.apply({
accounts: {
authority: wallet.publicKey,
helloQueue: wallet.publicKey,
},
signers: [wallet],
});
Any solutions?