Giter Site home page Giter Site logo

Handle type aliases about ethereumjs-abi HOT 7 OPEN

ethereumjs avatar ethereumjs commented on May 22, 2024
Handle type aliases

from ethereumjs-abi.

Comments (7)

axic avatar axic commented on May 22, 2024

Sorry @niran I am not sure exactly which types this is an issue with? Would you mind posting some examples?

from ethereumjs-abi.

niran avatar niran commented on May 22, 2024

uint and int are aliases for uint256 and int256. byte is an alias for bytes1.

https://solidity.readthedocs.org/en/latest/types.html

from ethereumjs-abi.

axic avatar axic commented on May 22, 2024

@niran those aliases are implemented. Where are you getting an error?

from ethereumjs-abi.

axic avatar axic commented on May 22, 2024

@niran apparently byte is a new addition as hence it is not included. It needs to go into the ABI first, but happy to support it after.

from ethereumjs-abi.

niran avatar niran commented on May 22, 2024

uint failed for me here if I recall correctly: https://github.com/axic/ethereumjs-abi/blob/master/lib/index.js#L78

It tries to parse the size, but there isn't one.

from ethereumjs-abi.

axic avatar axic commented on May 22, 2024

@niran the translation is done earlier: https://github.com/axic/ethereumjs-abi/blob/master/lib/index.js#L178 and https://github.com/axic/ethereumjs-abi/blob/master/lib/index.js#L217

It should be (u)int256 by the time it gets into the single item encoding

from ethereumjs-abi.

holgerd77 avatar holgerd77 commented on May 22, 2024

What's the status of this, is this a bug or was this wrong use of the API?

from ethereumjs-abi.

Related Issues (20)

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.