You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix Vector<Option<T>> simple args: auto-wrap BCS values in MoveOption
When BCS-encoded values (e.g. AccountAddress.ONE) are passed as elements
of vector<Option<T>>, they are now automatically wrapped in MoveOption
instead of throwing 'Type mismatch for argument N, expected MoveOption'.
The fix detects when a BCS-encoded argument is provided for an Option<T>
parameter but is not already a MoveOption, and wraps it after validating
it matches the Option's inner type.
Also adds explicit return type annotation to checkOrConvertArgument to
fix TypeScript DTS build error from the new recursive call pattern.
Co-authored-by: Greg Nazario <greg@gnazar.io>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ All notable changes to the Aptos TypeScript SDK will be captured in this file. T
6
6
7
7
## Fixed
8
8
9
+
- Fix simple function arguments for `Vector<Option<T>>` types: BCS-encoded values (e.g. `AccountAddress.ONE`) passed as elements of `vector<Option<address>>` are now automatically wrapped in `MoveOption` instead of throwing a type mismatch error
9
10
- Resolve moderate security advisories in `confidential-assets` dev tooling by pinning transitive `file-type` and `yauzl` (via `@swc/cli` → `@xhmikosr/downloader`) to patched releases
10
11
- Remove hardcoded `maxGasAmount: 2000` from e2e tests (Account Derivation APIs, WebAuthn submission) that caused `MAX_GAS_UNITS_BELOW_MIN_TRANSACTION_GAS_UNITS` failures after the on-chain minimum gas increase
11
12
- Add troubleshooting section to CONTRIBUTING.md for `ERR_WORKER_OUT_OF_MEMORY` build failures on low-RAM systems
0 commit comments