Closed BenElferink closed 1 week ago
Can you try 1.6.4
see if the issue persists?
Can you try
1.6.4
see if the issue persists?
I upgraded to the latest:
{
"@meshsdk/core": "^1.6.9",
"@meshsdk/react": "^1.6.9"
}
I can't create a new TX at all now. I get the following error:
Error: [Transaction] An error occurred during build: TypeError: this.initiator.getUtxos is not a function.
And yes, TypeScript too isn't happy with the AppWallet and Transaction combo after updating Mesh. Here is my code:
const provider = new BlockfrostProvider(BLOCKFROST_API_KEY)
const wallet = new AppWallet({
networkId: 1,
fetcher: provider,
submitter: provider,
key: {
type: 'mnemonic',
words: TRADE_APP_MNEMONIC,
},
})
const tx = new Transaction({ initiator: wallet }) // <--- TypeScript angry
I'm now using the following version:
{
"@meshsdk/core": "^1.6.12",
"@meshsdk/react": "^1.6.12"
}
Still unable to use AppWallet
as initiator in new Transaction
.
Just checked the class type signature, AppWallet
is no longer a IInitiator
, please use MeshWallet
instead (same way of initiating)
Just checked the class type signature,
AppWallet
is no longer aIInitiator
, please useMeshWallet
instead (same way of initiating)
Thanks that worked!
EDIT: Refer to this comment for up-to-date info on this issue.
PRE-EDIT: I use App Wallets for my web tools.
I used to be able to transact, mint, and burn, with no problems at all, this was with SDK versions:
However, after updating recently to:
My App Wallet errored consistently with:
The wallet had at least 100 ADA, and no assets in it. Only after downgrading back to the old beta versions, was I able to mint/transact again.