u-node / minter-sdk Goto Github PK
View Code? Open in Web Editor NEWMinter SDK + API
License: MIT License
Minter SDK + API
License: MIT License
File "/root/minter-sdk/mintersdk/sdk/transactions.py", line 93, in sign
tx = self._structure_from_instance()
File "/root/minter-sdk/mintersdk/sdk/transactions.py", line 987, in _structure_from_instance
struct = super()._structure_from_instance()
File "/root/minter-sdk/mintersdk/sdk/transactions.py", line 140, in _structure_from_instance
'gas_coin': MinterConvertor.encode_coin_name(self.gas_coin),
File "/root/minter-sdk/mintersdk/init.py", line 40, in encode_coin_name
return symbol + chr(0) * (10 - len(symbol))
TypeError: object of type 'int' has no len()
It looks like the usage of to_pip in the string below is the typo. I believe to_bip is more suitable here, like it is done in the other _structure_to_kwargs methods in the file.
minter-sdk/mintersdk/sdk/transactions.py
Line 1197 in e86c6fd
Any minter TX has the length of 64 HEX chars. The functions returns 40.
minter-sdk/mintersdk/sdk/transactions.py
Line 226 in e86c6fd
minter-sdk/mintersdk/sdk/transactions.py
Line 227 in e86c6fd
Propose to modify the comment and the code string in the following way:
# Return first 64 symbols with prefix
return MinterHelper.prefix_add(sha.hexdigest()[:64], PREFIX_TX)
What Is it query in "get_transactions"? Can you give me example?
tx = MinterSendCoinTx(coin='BIP', to=collection.address_to, value=5, nonce=1, gas_coin=0)
Error: rlp: input string too long for types.CoinID, decoding into (transaction.Transaction).GasCoin
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.