Skip to content

Commit

Permalink
pkg cleanpup
Browse files Browse the repository at this point in the history
  • Loading branch information
drortirosh committed May 8, 2023
1 parent 3d849b3 commit bf833b2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 29 deletions.
1 change: 0 additions & 1 deletion packages/bundler/contracts/Import.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ pragma solidity ^0.8.0;

// import contracts to get their type info.
import "@account-abstraction/utils/contracts/test/SampleRecipient.sol";
import "@account-abstraction/utils/contracts/test/SingletonFactory.sol";
import "@account-abstraction/contracts/samples/SimpleAccountFactory.sol";
1 change: 1 addition & 0 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"license": "MIT",
"files": [
"dist/src",
"src",
"README.md"
],
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions packages/sdk/src/BaseAccountAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ export abstract class BaseAccountAPI {
try {
await this.entryPointView.callStatic.getSenderAddress(initCode)
} catch (e: any) {
if (e.errorArgs == null) {
throw e
}
return e.errorArgs.sender
}
throw new Error('must handle revert')
Expand Down
26 changes: 0 additions & 26 deletions packages/utils/contracts/test/SingletonFactory.sol

This file was deleted.

4 changes: 2 additions & 2 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"main": "./dist/src/index.js",
"license": "MIT",
"files": [
"dist/*",
"contracts/*",
"dist",
"src",
"README.md"
],
"scripts": {
Expand Down

0 comments on commit bf833b2

Please sign in to comment.