[experimental] Figure out how to write an assertion function for fully signed transactions while TypeScript does not support async assertions and typeguards #1773
Labels
enhancement
New feature or request
See microsoft/TypeScript#37681 (comment).
Essentially you can write an assertion function (playground)…
…but as soon as you make that assertion function async it stops working.
Options:
assertIsFullySignedTransaction()
function that just checks to see if there is a signature for each signer, without actually performing any verificationassertFoo
/isFoo
and make a function that both asserts and returns the transaction with theIFullySignedTransaction
type added.Neither of these are great, and both are really hard to take back (ie. deprecate) once we've released them.
The text was updated successfully, but these errors were encountered: