Comments (6)
I got it to work by replacing the min_val method result with a raw number (2000000). I guess the builder needs to have an absolute minimum in the min_val method
from pycardano.
Hi @34r7h , it is indeed a bug, which I fixed in this commit. You can try again with your old code and let me know if the problem is fixed.
Also, you can try using the post-alonzo min lovelace calculation by changing your code from:
min_val = min_lovelace(chain_context, amount=Value(0, my_nft))
to
min_val = min_lovelace(chain_context, output=TransactionOutput(to_address, Value(0, my_nft)))
where to_address
is the address to which the nft will be sent to. The post-alonzo calculation requires less amount of min lovelace compared to pre-alonzo.
from pycardano.
Seem like the issues is not fixed in the builder. We still have the same problem. Minval in the utxo is very low which is not enough.
from pycardano.
@hasonhai Could you try using the second solution in v0.6.3
?
min_val = min_lovelace(chain_context, output=TransactionOutput(to_address, Value(0, my_nft)))
from pycardano.
6.3 with min_val = min_lovelace(chain_context, output=TransactionOutput(to_address, Value(0, my_nft)))
worked. Thank you Jer
from pycardano.
Thanks @34r7h for confirming! Closing this issue.
from pycardano.
Related Issues (20)
- tx sign fails without giving any explicit error. Error type: 500 HOT 2
- most basic nft minting is now failing HOT 9
- Support for Ogmios 6.x in the ChainContext HOT 3
- Seperating primitives and chain contexts / higher level tooling HOT 1
- TransactionFailedException with empty websocket response / receiving empty string
- Reconstructing Transactions from CBOR does not preserve the structure HOT 7
- Support Conway HF ledger changes HOT 1
- Integration test for Conway HF
- Usage of PlutusData for Datum deserialization is unclear HOT 9
- Pycardano does not prevent adding datums for script inputs with inline datums
- Round trip plutus datum serialization/deserialization error HOT 4
- Creating an invalid tx when trying to mint too large amount of tokens HOT 5
- Error message misleading when execution/mem cost largely exceeds allowed cost
- TypeError when computing tx id: Field 'datum' should be of type typing.Union[...] HOT 1
- PyCardano creates an imbalanced transaction in complex transactions HOT 1
- [bug]: BlockFrostChainContext is not correctly initialized HOT 3
- cardano-cli context incorrect handling latest protocol params
- Script Evaluation Error HOT 1
- Deserialization from CBOR of arbitrary plutus data HOT 1
- Testing with Pycardano will fail in Python 3.12.0 (possibly use) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pycardano.