Commit graph

11 commits

Author SHA1 Message Date
cary
c810879eaa ignore failed result 2026-04-18 22:47:48 +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
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
1fbee12081 Support single request
Outputs type supports nil
2023-12-11 15:47:34 +08:00
Caner Çıdam
44b77b522a add cooldown to chunked calls 2023-07-01 17:43:06 +02:00
Caner Çıdam
1436386c67 fix chunking 2023-06-09 21:53:54 +03:00
Caner Çıdam
15e8bbc6b0 chunk calls 2023-06-09 19:10:35 +03:00
Caner Çıdam
b7f5bea328 first commit 2023-04-24 15:27:26 +03:00