Use TransactionInvalidContextError in _assertExecutableTransaction
This commit is contained in:
@@ -150,11 +150,12 @@ contract MixinTransactions is
|
||||
));
|
||||
}
|
||||
|
||||
// Prevent reentrancy
|
||||
if (currentContextAddress != address(0)) {
|
||||
LibRichErrors.rrevert(LibExchangeRichErrors.TransactionError(
|
||||
LibExchangeRichErrors.TransactionErrorCodes.NO_REENTRANCY,
|
||||
transactionHash
|
||||
// Prevent `executeTransaction` from being called when context is already set
|
||||
address currentContextAddress_ = currentContextAddress;
|
||||
if (currentContextAddress_ != address(0)) {
|
||||
LibRichErrors.rrevert(LibExchangeRichErrors.TransactionInvalidContextError(
|
||||
transactionHash,
|
||||
currentContextAddress_
|
||||
));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user