I already checked the programID I am using in the app, and it matches to above one.
// App.jsasyncfunctioninitialize(){constprovider=awaitgetProvider();/* create the program interface combining the idl, program ID, and provider */constprogram=newProgram(idl,programID,provider);console.log(program.programId.toBase58());
But I am still getting this issue when I am trying to call the initialize() function.
Transaction simulation failed: Error processing Instruction 0: custom program error: 0xa7
Program BEPhkwFSf3m5Daz5LZPZhBbeVBkvY3vKnGRiWtNwFn54 invoke [1]
Program 11111111111111111111111111111111 invoke [2]
Program 11111111111111111111111111111111 success
Program log: Custom program error: 0xa7
Program BEPhkwFSf3m5Daz5LZPZhBbeVBkvY3vKnGRiWtNwFn54 consumed 5512 of 200000 compute units
Program BEPhkwFSf3m5Daz5LZPZhBbeVBkvY3vKnGRiWtNwFn54 failed: custom program error: 0xa7
I am really not sure why this happens and it's bothering me for days. Please help me if you have any idea.
I am also getting this issue. I updated the
lib.rs
andAnchor.toml
files withprogramID
.Here are the steps I've done.
And this returned the
programID
in the form of public key.Replaced the program id in
lib.rs
andAnchor.toml
I already checked the programID I am using in the app, and it matches to above one.
But I am still getting this issue when I am trying to call the
initialize()
function.I am really not sure why this happens and it's bothering me for days. Please help me if you have any idea.
Did you fund the wallet?