Comments (5)
Isn't this intended? uint is a solidity alias, is it ABI conforming?
from abitype.
@greenlucid you are right that EIP-712 doesn't support uint
alias (i copied the whole selector from the sourcecode -- that's why i hit that).
However, I think that there should be some kind of error instead of a silent failure.
from abitype.
Thanks for reporting! Think we already have some code in PR that will solve this.
from abitype.
@tmm not sure if the current PRs have a fix for this. Unless I am missing something on your side.
If you don't have anything I can work on a PR that fix this.
from abitype.
Based on my interpretation of this (also below):
uint
,int
: synonyms foruint256
,int256
respectively. For computing the function selector,uint256
andint256
have to be used.
"type": "uint"
and "type": "int"
are both allowed. Not sure if any compilers output these as-is or convert to the fixed versions. Either way, converting things in #110
Separately, uint
and int
are already not allowed in EIP-712 Typed Data (see TypedDataType
).
from abitype.
Related Issues (16)
- bug: type inference won't work when `constructor` has no `stateMutability` property HOT 7
- test issue ci workflow HOT 1
- bug: parseAbi throws type error HOT 9
- Error when build in Nextjs 12.1.6 HOT 6
- Identifiers with `$` are not recognized HOT 2
- TS build error: instantiation is excessively deep HOT 10
- Extra space in formatAbi return type HOT 4
- `FormatAbiParameter` infers incorrect string on nested unnamed `components` HOT 1
- Abi `Zod` schema does not infer to `Abi` type HOT 8
- Compilation issue with TypeScript 5.2.2 HOT 9
- Unable to resolve "abitype/zod" in Expo React Native HOT 3
- `(encode|parse)AbiParameters` detects types correctly when passed as string but not array HOT 4
- Conflict with Typescript version HOT 2
- bug: tuple[] generated type is incorrect? HOT 3
- bug: bytes32 type is too strict HOT 5
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 abitype.