-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
contract interaction: validate args inputs #1035
Labels
enhancement
New feature or request
PM review
For issues what are needed to be reviewed by PM
v1.22.0
Release v1.22.0
Comments
tom2drum
added
research
Research task
enhancement
New feature or request
triage
Issues and PRs that are needed triage
labels
Jul 19, 2023
tom2drum
changed the title
write contract inputs validation
contract interaction: validate args inputs
Aug 1, 2023
Deleted |
@tgladilina to be reworked: |
github-actions
bot
added
pre-release
Tasks in pre-release right now
v1.22.0
Release v1.22.0
and removed
pre-release
Tasks in pre-release right now
labels
Jan 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
enhancement
New feature or request
PM review
For issues what are needed to be reviewed by PM
v1.22.0
Release v1.22.0
validation rules for each type of args:
bool
true
orfalse
with all possible variations of letter-case (tRuE
is correct), or either1
or0
string
int
,int8
, etc[0-9]
and signs-
or+
-128…127
forint8
)can contain thousands separators likedecided to use masked inputs_
or,
uint
,uint8
, etc[0-9]
and sign+
-128…127
forint8
)can contain thousands separators likedecided to use masked inputs_
or,
address
/^0x[a-fA-F\d]{40}$/
bytes1
,bytes2
, etc0x112233
forbytes3
); empty value is0x
foo
) with length less or equal array size; empty value is""
bytes
bytes1[]
,bytes2
, etcT[k]
whereT
can be any of the above types andk
is array size (optional)[4, 3, 2, 1]
- in square brackets type elements separated by comma and white space (optional)[ [ 1, 2 ], [ [ 3, 4 ] ], [ [ [ 5 ], 6 ], 7 ]
function
tuple
[ 1, true, 0x112233]
struct
The text was updated successfully, but these errors were encountered: