Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
ab0979f9
Unverified
Commit
ab0979f9
authored
4 years ago
by
Suriyaa Sundararuban
Committed by
GitHub
4 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
signer: docs - replace wiki links with new doc pages (#22069)
parent
0a09a393
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
abi_test.go
signer/fourbyte/abi_test.go
+3
-3
No files found.
signer/fourbyte/abi_test.go
View file @
ab0979f9
...
...
@@ -68,7 +68,7 @@ func TestNewUnpacker(t *testing.T) {
[
10
]
byte
{
49
,
50
,
51
,
52
,
53
,
54
,
55
,
56
,
57
,
48
},
common
.
Hex2Bytes
(
"48656c6c6f2c20776f726c6421"
),
},
},
{
// https://
github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI
#examples
},
{
// https://
docs.soliditylang.org/en/develop/abi-spec.html
#examples
`[{"type":"function","name":"sam","inputs":[{"type":"bytes"},{"type":"bool"},{"type":"uint256[]"}]}]`
,
// "dave", true and [1,2,3]
"a5643bf20000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000464617665000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003"
,
...
...
@@ -124,7 +124,7 @@ func TestCalldataDecoding(t *testing.T) {
"42958b5400000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000042"
,
// Too short compareAndApprove
"a52c101e00ff0000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000042"
,
// From https://
github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI
// From https://
docs.soliditylang.org/en/develop/abi-spec.html
// contains a bool with illegal values
"a5643bf20000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000464617665000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003"
,
}
{
...
...
@@ -135,7 +135,7 @@ func TestCalldataDecoding(t *testing.T) {
}
// Expected success
for
i
,
hexdata
:=
range
[]
string
{
// From https://
github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI
// From https://
docs.soliditylang.org/en/develop/abi-spec.html
"a5643bf20000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000464617665000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003"
,
"a52c101e0000000000000000000000000000000000000000000000000000000000000012"
,
"a52c101eFFffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment