-
Notifications
You must be signed in to change notification settings - Fork 125
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
Bug with min_ada_required() #282
Comments
Hi, @BlakeBrown! See release draft notes for version 10, the third parameter to the |
Hi @vsubhuman , I am assuming this refers to the change on this commit: 40565b9?
is now
Thanks, I am still unable to find the release draft notes for version 10 of the library. |
Ah, you just open the releases section and the draft will be visible at the top, if it exists: https://github.com/Emurgo/cardano-serialization-lib/releases https://github.com/Emurgo/cardano-serialization-lib/releases/tag/untagged-38227e1d0ee851c64be5 |
I can not see it, I can only see up to version 9.1.2, also the link: https://github.com/Emurgo/cardano-serialization-lib/releases/tag/untagged-38227e1d0ee851c64be5 Goes to error 404 page not found. Maybe it is not publicly visible? |
My bad! I thought for some reason that the notes are visible publicly. Sorry for that. I have created the release PR drafrt here with the notes: #283 |
Thank you so much @vsubhuman! 🙏 Will close out this issue. I've gotten a bit further, but now I get the error |
Which There's a separate PR where assets support is added for random-improve, it's about to be merged, but not yet atm. There will be another beta published for it. In beta8 you can either select inputs manually or use largest-first strategy. |
I saw that! I'm using largestFirst :/ |
EDIT: Found my mistake!! Was doing something really stupid. Apologies for the hassle 😅 |
In general though I would strongly suggest not using the first version of LargestFirst for multiassets. We've got a PR #264 that seems to be planned to include into 10.0.0 that has a proper |
Thanks for the update @rooooooooob ! Will keep an eye open for when this gets merged 👀 |
Wanted to call out a potential problem, in case you're not already aware of it. If we start using I believe Alessandro made a custom library where he added the following method to the TransactionBuilder. /**
* @param {TransactionInput} input
* @returns {number}
*/
index_of_input(input) {
_assertClass(input, TransactionInput);
var ret = wasm.transactionbuilder_index_of_input(this.ptr, input.ptr);
return ret >>> 0;
} Would be fantastic to have this included in the official library 😄 |
Hi Blake did you figure this out |
min_ada_required() seems to report the wrong minimum ADA value for multiassets 😢
To repro:
Gives a total of 40 ADA or 40,000,000 lovelace 🤯
Any ideas why this might be happening?
The text was updated successfully, but these errors were encountered: