@mysten/payment-kit@0.1.9
·
156 commits
to main
since this release
Patch Changes
-
bb8d26a: Fix three latent type errors in the generated
utils/index.tsthat surfaced for
consumers withnoUncheckedIndexedAccess: true:getPureBcsSchema(structTag.typeParams[0])passedTypeTag | undefinedto a parameter typed
string | TypeTag. Now null-checks the inner tag before passing it.argTypes[i]was redundantly re-indexed inside afor…of entries()loop, returning
string | null | undefinedand being passed back togetPureBcsSchema. Switched to the loop
variable, which isstring | null.MoveStruct.get()returned the destructured[res]fromgetMany([objectId])without
asserting it was defined. Now throws if no object was returned.
The codegen test suite gained a
tsc-based check that compiles the generatedutils/index.ts
under strict +noUncheckedIndexedAccess, so embedded-template type bugs are caught before
release rather than by downstream consumers.All consumer packages (
payment-kit,pas,walrus,suins,deepbook-v3,kiosk) have been
regenerated with the fix.