Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the TX builder adds a testnet addr and signing such a Tx errors out #288

Open
MiroslavRet opened this issue Sep 4, 2024 · 1 comment
Open

Comments

@MiroslavRet
Copy link

SwapNFT.tsx:90 Error initiating swap: TxSendError: (400)
failed:
xxxxxxx
Some discriminated entities in the transaction are configured for another network. In fact, payment addresses, stake addresses and stake pool registration certificates are bound to a specific network identifier. This identifier must match the network you're trying to submit them to. Since the Alonzo era, transactions themselves may also contain a network identifier. The field 'data.expectedNetwork' indicates what is the currrently expected network. The field 'data.discriminatedType' indicates what type of entity is causing an issue here. And 'data.invalidEntities' lists all the culprits found in the transaction. The latter isn't present when the transaction's network identifier itself is wrong.
Data: {"discriminatedType":"address","invalidEntities":["addr_test1xxxxxxxxxxxxxxxx"],"expectedNetwork":"mainnet"}

at getTxSendError (dom.js:2541:12)
at Object.submitTx (dom.js:2338:13)

txBodyJson.txt

at async initiateSwap (SwapNFT.tsx:85:22)
@jinglescode
Copy link
Member

@MiroslavRet update version 1.7.2
do npm install @meshsdk/core@1.7.2 && npm install @meshsdk/contract@1.7.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants