update base tx

This commit is contained in:
Denis Angell
2023-02-22 17:46:11 -05:00
parent e36912c60a
commit 69c705874f

View File

@@ -162,7 +162,7 @@ export interface BaseTransaction {
/**
* The network id of the transaction.
*/
NetworkID?: string
NetworkID?: number
}
/**
@@ -256,6 +256,9 @@ export function validateBaseTransaction(common: Record<string, unknown>): void {
) {
throw new ValidationError('BaseTransaction: invalid TxnSignature')
}
if (common.NetworkID !== undefined && typeof common.NetworkID !== 'number') {
throw new ValidationError('BaseTransaction: invalid NetworkID')
}
}
/**