Skip to content

Commit

Permalink
Merge pull request #14602 from xiaolou86/develop
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
nikola-matic authored Nov 28, 2023
2 parents cfdd2e0 + 1ad3890 commit 4b29380
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions test/compilationTests/corion/premium.sol
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,11 @@ contract premium is module, safeMath {
@success If the function was successful.
*/
if ( from != msg.sender ) {
(bool _success, uint256 _reamining, uint256 _nonce) = db.getAllowance(from, msg.sender);
(bool _success, uint256 _remaining, uint256 _nonce) = db.getAllowance(from, msg.sender);
require( _success );
_reamining = safeSub(_reamining, amount);
_remaining = safeSub(_remaining, amount);
_nonce = safeAdd(_nonce, 1);
require( db.setAllowance(from, msg.sender, _reamining, _nonce) );
require( db.setAllowance(from, msg.sender, _remaining, _nonce) );
emit AllowanceUsed(msg.sender, from, amount);
}
bytes memory _data;
Expand Down
6 changes: 3 additions & 3 deletions test/compilationTests/corion/token.sol
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,11 @@ contract token is safeMath, module, announcementTypes {
@success Was the Function successful?
*/
if ( from != msg.sender ) {
(bool _success, uint256 _reamining, uint256 _nonce) = db.getAllowance(from, msg.sender);
(bool _success, uint256 _remaining, uint256 _nonce) = db.getAllowance(from, msg.sender);
require( _success );
_reamining = safeSub(_reamining, amount);
_remaining = safeSub(_remaining, amount);
_nonce = safeAdd(_nonce, 1);
require( db.setAllowance(from, msg.sender, _reamining, _nonce) );
require( db.setAllowance(from, msg.sender, _remaining, _nonce) );
emit AllowanceUsed(msg.sender, from, amount);
}
bytes memory _data;
Expand Down

0 comments on commit 4b29380

Please sign in to comment.