Skip to content

Conversation

@mikekeke
Copy link
Contributor

@mikekeke mikekeke commented Oct 24, 2022

Previous version used CardanoApi query to check if wallets are funded before execute contracts in examples and tasty integration.

It turned out, that with bigger slot length setting chain-index starts to lag behind the node significantly. And because Contract calls like utxosAt use chain-index queries, it resulted in the situation, where wallets were considered funded, but there were no UTxOs returned from utxosAt and alike during contract execution.

Current PR gives two ways of checking if wallet is funded - using CardaniApi queries or chain-index queries.
All examples and tasty integration from now on uses check via chain-index.
plutip-server used by CTL uses faster check via CardanoApi query.

@mikekeke mikekeke marked this pull request as ready for review October 25, 2022 09:26
@mikekeke mikekeke merged commit 31ff4c4 into master Oct 25, 2022
@mikekeke mikekeke deleted the funds-awaiting-fix branch October 27, 2022 07:26
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

Successfully merging this pull request may close these issues.

2 participants