Skip to content

fix(cli): preserve nested bigint contract arguments - #97

Merged
LucienSong merged 1 commit into
mainfrom
codex/cli-nested-contract-args-20261012
Oct 12, 2026
Merged

LucienSong merged 1 commit into
mainfrom
codex/cli-nested-contract-args-20261012

Conversation

@LucienSong

Copy link
Copy Markdown
Collaborator

CLI contract arguments such as --args '[["9007199254740993n"]]' previously failed before RPC because bigint conversion applied only to the top-level array. Convert n-suffixed decimal strings recursively through arrays and named or positional tuples, including signed values. Reject unsafe JSON numeric integers before signing or sending to prevent precision loss.

The existing live overload regression now executes actual CLI compile/write/read commands with fresh ML-DSA-65 and Dilithium3 keystores. It verifies the original complete ABI, full-word address and integer state, failed writes and automatic nonce/fee accounting, independent P2P import, historical queries, offline catch-up and finalized RocksDB crash recovery followed by another CLI write.

Validation: npm run typecheck and npm test (including the declaration build) pass. The original nested CLI failure no longer occurs; parser/ABI boundary checks cover arrays, named/positional signed tuples and rejection before transport. All ten new CLI live combinations pass against node source e94038717a1522080ecf701edacbde21cf37b870 with RocksDB/libp2p. Genesis predeployment is explicit; native CREATE and matching public package/profile acceptance remain separate.

@LucienSong
LucienSong merged commit 517580c into main Oct 12, 2026
3 checks passed
@LucienSong
LucienSong deleted the codex/cli-nested-contract-args-20261012 branch October 12, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant