File tree Expand file tree Collapse file tree
src/validators/evm/erc4626 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88import { BaseEVMValidator , EVMTransaction } from '../base.validator' ;
99import { VaultInfo , VaultConfiguration } from './types' ;
1010import { WETH_ADDRESSES } from './constants' ;
11+ import { isNonEmptyString } from '../../../utils/validation' ;
12+
1113
1214/**
1315 * Standard ERC4626 ABI - only the functions we need to validate
@@ -125,7 +127,9 @@ export class ERC4626Validator extends BaseEVMValidator {
125127 return this . blocked ( 'Transaction has no destination address' ) ;
126128 }
127129
128- const receiverAddress = args ?. receiverAddress || undefined ;
130+ const receiverAddress = isNonEmptyString ( args ?. receiverAddress )
131+ ? args . receiverAddress
132+ : undefined ;
129133
130134 // Route to appropriate validation based on transaction type
131135 switch ( transactionType ) {
You can’t perform that action at this time.
0 commit comments