space-bico-account-abstraction
Advanced tools
Comparing version 1.9.5 to 1.9.6
{ | ||
"name": "space-bico-account-abstraction", | ||
"version": "1.9.5", | ||
"version": "1.9.6", | ||
"main": "./dist/src/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -112,6 +112,6 @@ import { ethers, BigNumber, BigNumberish } from 'ethers' | ||
if (senderAddressCode.length > 2) { | ||
// console.log(`SimpleAccount Contract already deployed at ${this.senderAddress}`) | ||
console.log(`SimpleAccount Contract already deployed at ${this.senderAddress}`) | ||
this.isPhantom = false | ||
} else { | ||
// console.log(`SimpleAccount Contract is NOT YET deployed at ${this.senderAddress} - working in "phantom account" mode.`) | ||
console.log(`SimpleAccount Contract is NOT YET deployed at ${this.senderAddress} - working in "phantom account" mode.`) | ||
} | ||
@@ -118,0 +118,0 @@ return this.isPhantom |
@@ -78,3 +78,2 @@ import { BigNumber, BigNumberish, ethers } from 'ethers' | ||
// TODOS: getNonce in smart account | ||
async getNonce(): Promise<any> { | ||
@@ -84,4 +83,2 @@ if (await this.checkAccountPhantom()) { | ||
} | ||
// this.accountContract = SimpleAccount__factory.connect(this.accountAddress!, this.provider) | ||
// return this.accountContract.getNonce(); | ||
return await this.provider.getTransactionCount(this.accountAddress || '0x0000000000000000000000000000000000000000'); | ||
@@ -99,3 +96,3 @@ } | ||
return accountContract.interface.encodeFunctionData( | ||
'execute', // From execute => executeCall method | ||
'execute', | ||
[ | ||
@@ -102,0 +99,0 @@ target, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9739630
197644