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
Trying to pack a payload that is not multiple of 32 bytes (like in the picture) seems to conflict with fuel-core.
At relayCommonMessage.ts:
// Relay commonly used messages with predicates spendable by anyoneexportasyncfunctionrelayCommonMessage(relayer: FuelWallet,message: Message,txParams?: Pick<ScriptTransactionRequestLike,'gasLimit'|'gasPrice'|'maturity'>): Promise<TransactionResponse>{// find the relay details for the specified messageletmessageRelayDetails: CommonMessageDetails=null;constpredicateRoot=message.recipient.toHexString();for(constdetailsofgetCommonRelayableMessages(relayer.provider)){if(details.predicateRoot==predicateRoot){messageRelayDetails=details;break;}}if(messageRelayDetails==null)thrownewError('message is not a common relayable message');// build and send transactionconsttransaction=awaitmessageRelayDetails.buildTx(relayer,message,messageRelayDetails,txParams||{});console.log(transaction);console.log(hexlify((transaction.inputs[0]asany).data!));console.log((transaction.inputs[0]asany).predicate.length);// This fails!!!returnrelayer.sendTransaction(transaction);}
fuel-core will return the error:
NotInsertedIoMessageMismatch,
#[error(
"Transaction is not inserted. Input output mismatch. Expected coin but output is contract"
)]
At dependency.rs:
// verify message id integrity
if !db_message
.matches_input(input)
.expect("Input is a message above")
{
return Err(Error::NotInsertedIoMessageMismatch)
}
The text was updated successfully, but these errors were encountered:
Branch to track issue https://github.com/FuelLabs/fuel-bridge/tree/deficake/issue-158
Trying to pack a payload that is not multiple of 32 bytes (like in the picture) seems to conflict with fuel-core.
At
relayCommonMessage.ts
:fuel-core will return the error:
At dependency.rs:
The text was updated successfully, but these errors were encountered: