Add validation on options.from in withdrawNFT
MODIFY
src/index.ts
src/index.ts
@@ -173,6 +173,9 @@ export default class Matic extends ContractsBase {
}
withdrawNFT(txHash: string, options?: SendOptions) {
+ if (options && !options.from) {
+ throw new Error(`options.from is missing`)
+ }
return this.withdrawManager.startExitWithBurntERC721Tokens(txHash, options)
}

Add validation on options.from in withdrawNFT