Add public version of _assertExecutableTransaction

This commit is contained in:
Amir Bandeali 2019-08-21 08:18:36 -07:00
parent a114bbb30e
commit eb6637afd5
2 changed files with 15 additions and 0 deletions

View File

@ -129,6 +129,7 @@ contract MixinTransactions is
bytes32 transactionHash
)
internal
view
{
// Check transaction is not expired
// solhint-disable-next-line not-rely-on-time

View File

@ -53,6 +53,20 @@ contract TestTransactions is
return _getCurrentContextAddress();
}
function assertExecutableTransaction(
LibZeroExTransaction.ZeroExTransaction memory transaction,
bytes memory signature
)
public
view
{
return _assertExecutableTransaction(
transaction,
signature,
transaction.getTypedDataHash(EIP712_EXCHANGE_DOMAIN_HASH)
);
}
// This function will execute arbitrary calldata via a delegatecall. This is highly unsafe to use in production, and this
// is only meant to be used during testing.
function executable(