We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac236eb commit 854b279Copy full SHA for 854b279
modules/sdk-coin-icp/src/lib/utils.ts
@@ -347,7 +347,7 @@ export class Utils implements BaseUtils {
347
throw new ParseTransactionError('Transaction data is missing.');
348
}
349
const { senderPublicKeyHex, senderAddress, receiverAddress } = transactionData;
350
- if (!this.isValidPublicKey(senderPublicKeyHex)) {
+ if (senderPublicKeyHex && !this.isValidPublicKey(senderPublicKeyHex)) {
351
throw new ParseTransactionError('Sender public key is invalid.');
352
353
if (!this.isValidAddress(senderAddress)) {
0 commit comments