Skip to content

Commit

Permalink
πŸ‘·πŸ»β€β™‚οΈ Clean up logic
Browse files Browse the repository at this point in the history
  • Loading branch information
JaredBorders committed Nov 14, 2023
1 parent 6abbeef commit 6d5b7fd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/SMv3SessionValidationModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,10 @@ contract SMv3SessionValidationModule is ISessionValidationModule {
}

/// @dev ensure call value is zero unless calling IEngine.depositEth or EIP7412.fulfillOracleQuery
if (funcSelector == IEngine.depositEth.selector) {
if (callValue == 0) {
revert InvalidCallValue();
}
} else if (funcSelector == EIP7412.fulfillOracleQuery.selector) {
if (
funcSelector == IEngine.depositEth.selector
|| funcSelector == EIP7412.fulfillOracleQuery.selector
) {
if (callValue == 0) {
revert InvalidCallValue();
}
Expand Down

0 comments on commit 6d5b7fd

Please sign in to comment.