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 referenced the documentation to write the code, and all the fields are there, but I've encountered an error. I've tried many methods to resolve it, but without success. Could you help me take a look? Thank you.
constmsgs=MsgExecuteContractInjective.fromJSON({sender: accounts[0].address,contractAddress: getWasmChainIDContractAddress(remoteChain.chainID)asstring,// msg: toUtf8(JSON.stringify(takePoolMessages)),msg: takePoolMessages,
funds,});// const msgs = MsgSend.fromJSON({// amount,// srcInjectiveAddress: accounts[0].address,// dstInjectiveAddress: accounts[0].address,// });/** Get the PubKey of the Signer from the Wallet/Private Key */constpubKey=accounts[0].pubkey;console.log(remoteChain.chainID,'remoteChain.chainID');console.log(msgs,'msgs_____');console.log(pubKey,'pubKey____');console.log(DEFAULT_STD_FEE,'fee');console.log(accountDetails.sequence,'accountDetails.sequence');console.log(accountDetails.accountNumber,'accountDetails.accountNumber');/** Prepare the Transaction **/const{ txRaw, signDoc }=createTransaction({chainId: remoteChain.chainID,message: msgs,memo: '',
pubKey,fee: DEFAULT_STD_FEE,sequence: accountDetails.sequence,accountNumber: accountDetails.accountNumber,timeoutHeight: 100,});console.log(txRaw,'txRaw______');constdirectSignResponse=awaitofflineSigner.signDirect(remoteAddress,signDoc);consttxRawHx=getTxRawFromTxRawOrDirectSignResponse(directSignResponse);consttxHash=awaitbroadcastTx(remoteChain.chainID,txRawHx);constresponse=awaitnewTxRestClient(remoteChain.rpcUrl).fetchTxPoll(txHash);console.log(response,'response____');
I referenced the documentation to write the code, and all the fields are there, but I've encountered an error. I've tried many methods to resolve it, but without success. Could you help me take a look? Thank you.
Could not load content for http://127.0.0.1:5173/node_modules/@injectivelabs/sdk-ts/src/core/modules/tx/tx.ts (HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE)
The text was updated successfully, but these errors were encountered: