Skip to content

Commit

Permalink
Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
rmeissner committed Mar 23, 2021
1 parent 7dca238 commit 04b108d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/GnosisSafe.sol
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ contract GnosisSafe
// We only substract 2500 (compared to the 3000 before) to ensure that the amount passed is still higher than safeTxGas
success = execute(to, value, data, operation, gasPrice == 0 ? (gasleft() - 2500) : safeTxGas);
gasUsed = gasUsed.sub(gasleft());
// If no safeTxGas and no gasPrice was set (aka both are 0), then the internal tx is required to be successful
// If no safeTxGas and no gasPrice was set (e.g. both are 0), then the internal tx is required to be successful
require(success || safeTxGas != 0 || gasPrice != 0, "GS013");
// We transfer the calculated tx costs to the tx.origin to avoid sending it to intermediate contracts that have made calls
uint256 payment = 0;
Expand Down
2 changes: 1 addition & 1 deletion docs/error_codes.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- `GS010`: `Not enough gas to execute Safe transaction`
- `GS011`: `Could not pay gas costs with ether`
- `GS012`: `Could not pay gas costs with token`
- `GS013`: `Safe transaction failed when gasPrice and safeTxGas where 0`
- `GS013`: `Safe transaction failed when gasPrice and safeTxGas were 0`

### General signature validation related
- `GS020`: `Signatures data too short`
Expand Down

0 comments on commit 04b108d

Please sign in to comment.