-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
Hi!
I am following the buildSwapExactInTx example but when trying to submit the transaction I get the error below
export async function setupLucid(): Promise<Lucid> {
const lucidInstance = await Lucid.new(
new Blockfrost(
"https://cardano-mainnet.blockfrost.io/api/v0/", "<secret>"
),
"Mainnet"
);
await lucidInstance.selectWalletFromSeed("word1 word2...");
return lucidInstance;
}
// ..
let lucid = await setupLucid();
const dex = new Dex(lucid);
let tx = await dex.buildSwapExactInTx({
amountIn: assetA,
assetIn: ADA,
assetOut: snek_asset,
minimumAmountOut: t.amount_out,
isLimitOrder: false,
sender: address,
availableUtxos: utxos,
});
const signedTx = await tx
.sign()
.complete();
const txId = await signedTx.submit();Error: {"contents":{"contents":{"contents":{"era":"ShelleyBasedEraConway","error":["ConwayUtxowFailure (PPViewHashesDontMatch (SJust (SafeHash \"a1206e71cf4bdb72480989b5f680ce7a873e19163ca3b7e6133ba6f434813157\")) (SJust (SafeHash \"48cda998e30e33931379c8adf4c6c4cf52bb9763ee3d38509ff7d86ee9ff630e\")))"],"kind":"ShelleyTxValidationError"},"tag":"TxValidationErrorInCardanoMode"},"tag":"TxCmdTxSubmitValidationError"},"tag":"TxSubmitFail"}
Metadata
Metadata
Assignees
Labels
No labels