mirror of
https://github.com/status-im/snt-gas-relay.git
synced 2025-02-28 13:40:29 +00:00
executed event always fire with executin result bool
This commit is contained in:
parent
39fcf1a055
commit
789252ba97
@ -12,7 +12,7 @@ contract IdentityGasRelay is Identity {
|
|||||||
|
|
||||||
bytes4 public constant CALL_PREFIX = bytes4(keccak256("callGasRelayed(address,uint256,bytes32,uint256,uint256,address)"));
|
bytes4 public constant CALL_PREFIX = bytes4(keccak256("callGasRelayed(address,uint256,bytes32,uint256,uint256,address)"));
|
||||||
|
|
||||||
event ExecutedGasRelayed(bytes32 signHash);
|
event ExecutedGasRelayed(bytes32 signHash, bool success);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @notice include ethereum signed callHash in return of gas proportional amount multiplied by `_gasPrice` of `_gasToken`
|
* @notice include ethereum signed callHash in return of gas proportional amount multiplied by `_gasPrice` of `_gasToken`
|
||||||
@ -68,9 +68,8 @@ contract IdentityGasRelay is Identity {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (_to.call.value(_value)(_data)) {
|
bool success = _to.call.value(_value)(_data);
|
||||||
emit ExecutedGasRelayed(_signedHash);
|
emit ExecutedGasRelayed(_signedHash, success);
|
||||||
}
|
|
||||||
|
|
||||||
if(_gasPrice > 0) {
|
if(_gasPrice > 0) {
|
||||||
payInclusionFee(
|
payInclusionFee(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user