Add public version of _assertExecutableTransaction
This commit is contained in:
parent
a114bbb30e
commit
eb6637afd5
@ -129,6 +129,7 @@ contract MixinTransactions is
|
|||||||
bytes32 transactionHash
|
bytes32 transactionHash
|
||||||
)
|
)
|
||||||
internal
|
internal
|
||||||
|
view
|
||||||
{
|
{
|
||||||
// Check transaction is not expired
|
// Check transaction is not expired
|
||||||
// solhint-disable-next-line not-rely-on-time
|
// solhint-disable-next-line not-rely-on-time
|
||||||
|
@ -53,6 +53,20 @@ contract TestTransactions is
|
|||||||
return _getCurrentContextAddress();
|
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
|
// 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.
|
// is only meant to be used during testing.
|
||||||
function executable(
|
function executable(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user