Commit graph

29 commits

Author SHA1 Message Date
0xcary
b396071d4b
Merge c810879eaa into 9467c4ddaa 2026-04-19 12:49:10 +00:00
cary
c810879eaa ignore failed result 2026-04-18 22:47:48 +08:00
cary
ab3fb84345 testcases 2026-04-18 17:00:01 +08:00
cary
6d059ec73f testcases 2026-04-18 16:57:49 +08:00
cary
c6cbb984a3 fix: multiple bug fixes and safety improvements
- call.go: safe type assertion in UnpackResult() to prevent panic
- call.go: warn when ABI returns more values than struct fields
- caller.go: use len() check instead of nil check for variadic multicallAddr
- caller.go: return allCalls (partial results) on CallChunked error
- caller_test.go: strip 4-byte method selector from stub return data

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-18 16:32:52 +08:00
cary
ff027d0059 fix: bounds check, CanSet guard, and call.Failed on unpack error
- call.go: guard against struct fields > ABI output count (panic)
- call.go: check field.CanSet() before field.Set() (panic on unexported fields)
- caller.go: set call.Failed=true when CanFail=true and unpack fails

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-18 15:55:51 +08:00
0xcary
c06f5fda53 update 2024-12-24 20:13:09 +08:00
0xcary
938e519c62
Update go.mod 2024-12-24 19:59:52 +08:00
0xcary
ed89e94dcb
Update abi.json 2024-12-24 19:48:24 +08:00
0xcary
1a46114ff4
Merge pull request #1 from ziyeziye/master
optimize
2024-12-24 19:46:12 +08:00
ziyeziye
c1a22458bf CanFail unpack error 2023-12-11 18:27:30 +08:00
ziyeziye
fa1d05a4e7 CanFail unpack error 2023-12-11 18:25:30 +08:00
ziyeziye
07b7d5b7f3 AllowFailure nil 2023-12-11 18:14:19 +08:00
ziyeziye
019903a6ac README.md 2023-12-11 16:28:52 +08:00
ziyeziye
4ca4148863 Support extension parameter return as is 2023-12-11 16:26:20 +08:00
ziyeziye
12c2d287e9 Outputs type supports nil 2023-12-11 16:09:42 +08:00
ziyeziye
1fbee12081 Support single request
Outputs type supports nil
2023-12-11 15:47:34 +08:00
GitHub Action
9467c4ddaa chore: update coverage badge 2023-07-01 15:43:55 +00:00
Caner Çıdam
44b77b522a add cooldown to chunked calls 2023-07-01 17:43:06 +02:00
GitHub Action
0abb968c07 chore: update coverage badge 2023-06-09 19:07:51 +00:00
Caner Çıdam
1436386c67 fix chunking 2023-06-09 21:53:54 +03:00
GitHub Action
83a1516841 chore: update coverage badge 2023-06-09 16:11:13 +00:00
Caner Çıdam
15e8bbc6b0 chunk calls 2023-06-09 19:10:35 +03:00
GitHub Action
953d6c522a chore: update coverage badge 2023-04-26 12:06:00 +00:00
Caner Çıdam
7f1d5bbfad remove input check before packing 2023-04-26 15:05:13 +03:00
Caner Çıdam
5a7299009b fix readme 2023-04-24 16:01:48 +03:00
Caner Çıdam
1b7f9d45fb fix readme 2023-04-24 16:01:26 +03:00
GitHub Action
4412fa0ea2 chore: update coverage badge 2023-04-24 12:30:36 +00:00
Caner Çıdam
b7f5bea328 first commit 2023-04-24 15:27:26 +03:00