You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried register ethereum Chain on my solana devnet program.
I call postVaa func from sdk with my VAA for registerChain, after I tried send insctruction for regsiterChain on tokenBridge.
I got InvalidOwner error:
import*astokenBridgefrom"@certusone/wormhole-sdk/lib/cjs/solana/tokenBridge";import{connection,payer,TOKEN_BRIDGE_PID,WORMHOLE_PID}from"../const";import{Transaction,sendAndConfirmTransaction}from"@solana/web3.js";asyncfunctionregisterChain(){constvaaMessage="01000000010200dc397f72adad509e0b9e38327db45de54cdc159fa541d3537fa331d051d789200684b0d58462748db15650a4cfaec5df669af30e4ce928a5c1179198c1185f360101b15c4f462643c38575f638f8264e6e193d1e2b61d9d573a564dcfd96ca041b4717051500bdba94180a0b6c91bb2917ac686bf880a70efe1b314779588286db4900000000000000000900010000000000000000000000000000000000000000000000000000000000000004000000000000000920000000000000000000000000000000000000000000546f6b656e4272696467650100000002000000000000000000000000b3acb4a8f7cc941ab347390d3e6fc2418b49f82c";constvaaMessageBuffer=Buffer.from(vaaMessage,"hex");try{constinstruction=tokenBridge.createRegisterChainInstruction(TOKEN_BRIDGE_PID,WORMHOLE_PID,payer.publicKey,vaaMessageBuffer,);console.log("Instruction created. Preparing transaction...");// Create a transaction and add the instruction to itconsttransaction=newTransaction().add(instruction);// Sending the transactionconsole.log("Sending transaction...");constsignature=awaitsendAndConfirmTransaction(connection,transaction,[payer,]);console.log("Transaction successful! Signature:",signature);}catch(error){console.error("Error creating or sending transaction:",error);}}registerChain();
I was able to update guardian set without any problems on solana. I understand that this is due to the fact that it happened on a core contract...
On the ethereum side I successfully registered solana without any problems, what am I missing on solana?
The text was updated successfully, but these errors were encountered:
Description and context
My contracts:
I tried register ethereum Chain on my solana devnet program.
I call postVaa func from sdk with my VAA for registerChain, after I tried send insctruction for regsiterChain on tokenBridge.
I got InvalidOwner error:
script postVaa:
script registerChain:
I was able to update guardian set without any problems on solana. I understand that this is due to the fact that it happened on a core contract...
On the ethereum side I successfully registered solana without any problems, what am I missing on solana?
The text was updated successfully, but these errors were encountered: