File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
contracts/smart-wallet/non-upgradeable Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ contract Account is
99
99
}
100
100
101
101
/// @notice Returns the balance of the account in Entrypoint.
102
- function getDeposit () public view returns (uint256 ) {
102
+ function getDeposit () public view virtual returns (uint256 ) {
103
103
return entryPoint ().balanceOf (address (this ));
104
104
}
105
105
@@ -148,12 +148,16 @@ contract Account is
148
148
}
149
149
150
150
/// @notice Deposit funds for this account in Entrypoint.
151
- function addDeposit () public payable {
151
+ function addDeposit () public payable virtual {
152
152
entryPoint ().depositTo { value: msg .value }(address (this ));
153
153
}
154
154
155
155
/// @notice Withdraw funds for this account from Entrypoint.
156
- function withdrawDepositTo (address payable withdrawAddress , uint256 amount ) public onlyRole (DEFAULT_ADMIN_ROLE) {
156
+ function withdrawDepositTo (address payable withdrawAddress , uint256 amount )
157
+ public
158
+ virtual
159
+ onlyRole (DEFAULT_ADMIN_ROLE)
160
+ {
157
161
entryPoint ().withdrawTo (withdrawAddress, amount);
158
162
}
159
163
@@ -166,7 +170,7 @@ contract Account is
166
170
address _target ,
167
171
uint256 value ,
168
172
bytes memory _calldata
169
- ) internal {
173
+ ) internal virtual {
170
174
(bool success , bytes memory result ) = _target.call { value: value }(_calldata);
171
175
if (! success) {
172
176
assembly {
You can’t perform that action at this time.
0 commit comments