Giter Club home page Giter Club logo

minter-sdk's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

minter-sdk's Issues

Unode Error MinterSendCoinTx

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()

get_hash() returns wrong transaction hash

Any minter TX has the length of 64 HEX chars. The functions returns 40.

# Return first 40 symbols with prefix

return MinterHelper.prefix_add(sha.hexdigest()[:40], PREFIX_TX)

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)

Error create transaction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.