Comments (7)
Sorry @niran I am not sure exactly which types this is an issue with? Would you mind posting some examples?
from ethereumjs-abi.
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.
@niran those aliases are implemented. Where are you getting an error?
from ethereumjs-abi.
@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.
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.
@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.
What's the status of this, is this a bug or was this wrong use of the API?
from ethereumjs-abi.
Related Issues (20)
- Formatting dynamic bytes differs from web3.js HOT 2
- rawEncode silently accepts invalid hex strings HOT 1
- String decoding breaks HOT 3
- Decoded int exceeds width: 160 vs 256 HOT 1
- Error can not install HOT 54
- TypeError: abi.encode is not a function HOT 1
- abi.solidityPack does not work with array HOT 1
- Cutting a new release that includes a `for in` fix HOT 1
- Addresses encoded in 32 bytes instead of 20 bytes
- Decode nested arguments (array of structs)
- "ethereumjs-abi" not found HOT 2
- Out-of-date handling of `bytes` and `string` arrays -- should this repo be marked as deprecated? HOT 2
- Github action ssh permission error on `npm ci` HOT 3
- not installed HOT 4
- Could not find a declaration file for module 'ethereumjs-abi'
- `Could not install from "node_modules/eth-sig-util/ethereumjs-abi@git+https:/github.com/ethereumjs/ethereumjs-abi.git" as it does not contain a package.json file.` HOT 4
- Error HH700: Artifact for contract "Greeter" not found. HOT 1
- Enable private reporting of vulnerabilities or document how to report vulnerabilities
- 无法安装 HOT 1
- Zero-sized-types cause DoS when parsed
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 ethereumjs-abi.