Revert transaction if it is unable to change data #198
Labels
1 (Low Risk)
Assets are not at risk. State handling, function incorrect as to spec, issues with comments
bug
Something isn't working
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
xYrYuYx
Vulnerability details
Impact
https://github.com/code-423n4/2021-11-malt/blob/main/src/contracts/TransferService.sol#L62
https://github.com/code-423n4/2021-11-malt/blob/main/src/contracts/TransferService.sol#L78
In addVerifier and removeVerifier functions of TransferService.sol, it just returns instead of revert if it is unable to change data.
Revert transaction to avoid creating unnecessary transaction and save transaction cost.
Tools Used
Manual
Recommended Mitigation Steps
Revert transaction instead of return.
The text was updated successfully, but these errors were encountered: