makes "call" more explicit
This commit is contained in:
parent
17b6b7357c
commit
fe4a10dfcd
|
@ -57,14 +57,18 @@ contract IdentityGasRelay is Identity {
|
||||||
);
|
);
|
||||||
|
|
||||||
//verify if signatures are valid and came from correct actors;
|
//verify if signatures are valid and came from correct actors;
|
||||||
uint256 requiredKey = _to == address(this) ? MANAGEMENT_KEY : ACTION_KEY;
|
verifySignatures(
|
||||||
verifySignatures(requiredKey, signHash, _messageSignatures);
|
_to == address(this) ? MANAGEMENT_KEY : ACTION_KEY,
|
||||||
|
signHash,
|
||||||
|
_messageSignatures
|
||||||
|
);
|
||||||
|
|
||||||
//executes transaction
|
//executes transaction
|
||||||
nonce++;
|
nonce++;
|
||||||
|
bool success = _to.call.value(_value)(_data);
|
||||||
emit ExecutedGasRelayed(
|
emit ExecutedGasRelayed(
|
||||||
signHash,
|
signHash,
|
||||||
_to.call.value(_value)(_data)
|
success
|
||||||
);
|
);
|
||||||
|
|
||||||
//refund gas used using contract held ERC20 tokens or ETH
|
//refund gas used using contract held ERC20 tokens or ETH
|
||||||
|
|
Loading…
Reference in New Issue