Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions contracts/libraries/SessionLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ library SessionLib {
uint64 period = uint64(block.timestamp / limit.period);
return limit.limit - tracker.allowanceUsage[period][account];
}
return 0;
}

function getState(
Expand Down
1 change: 1 addition & 0 deletions contracts/paymasters/GaslessPaymaster.sol
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ contract GaslessPaymaster is IPaymaster, Ownable, BootloaderAuth {
) external payable onlyBootloader returns (bytes4 magic, bytes memory context) {
// By default we consider the transaction as accepted.
magic = PAYMASTER_VALIDATION_SUCCESS_MAGIC;
context = "";

// Revert if standart paymaster input is shorter than 4 bytes
if (_transaction.paymasterInput.length < 4) revert Errors.SHORT_PAYMASTER_INPUT();
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/ERC20PaymasterMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ contract ERC20PaymasterMock is
*/
function callOracle(
bytes memory //* oracleCalldata */
) external view returns (uint256) {
) external pure returns (uint256) {
// return getOracleNumericValueFromTxMsg(bytes32('ETH'));
return 1500 * ORACLE_NOMINATOR;
}
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/MockModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ contract MockModule is IModule {
IAGWAccount(account).k1AddOwner(address(this));
}

function isInited(address account) external view returns (bool) {
function isInited(address) external pure returns (bool) {
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion contracts/validators/SessionKeyValidator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ contract SessionKeyValidator is IValidationHook, IModuleValidator, IModule {
return status;
}

function handleValidation(OperationType operationType, bytes32 signedHash, bytes memory signature) external view returns (bool) {
function handleValidation(OperationType operationType, bytes32 signedHash, bytes memory) external view returns (bool) {
if (operationType != OperationType.Transaction) {
return false;
}
Expand Down
Loading