-
Notifications
You must be signed in to change notification settings - Fork 40
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
Readme out of date #87
Comments
Hi @pochocosta and welcome to the CardanoSharp community! Could you please elaborate further on It is also worth mentioning that we have simplified this process slightly so you should be able to handle fees in fewer lines of code. A PR to update the documentation to reflect this will be raised soon. // Calculate Fee
var fee = transaction.CalculateAndSetFee(minFeeA, minFeeB);
transaction.TransactionBody.TransactionOutputs.Last().Value.Coin -= fee; |
Hi @safestak-keith thanks for reply! I will elaborate the problems I'm having. When I was creating the transaction, I receive an error at compilation time that says "Can't convert from 'CardanoSharp.Wallet.Models.Transactions.TransactionBody' to 'CardanoSharp.Wallet.TransactionBuilding.ITransactionBodyBuilder'" at the line:
And at the section Calculate Fee there are 3 lines. The line in the middle does not compile also.
The error says "the name transactionBuilder does not exist in the current context". Do you know how to solve these problems? |
Thanks for elaborating, I can now see where the documentation could be a little confusing. The
I can see that you have already built the Also note it is now easier to do the fee calculation and setting the transaction body with one line |
Hi! I was trying to use the library following the example code on the readme, but the code on the Calculate Fee section does not work any more. I wanted to fix the example, but I couldn't find the way.
Hope I can help in the future. Thanks in advance!
The text was updated successfully, but these errors were encountered: