space-bico-account-abstraction
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -44,3 +44,3 @@ "use strict"; | ||
} | ||
// TODO: check if right wrong biconmy | ||
// TODOS: check if right wrong biconmy | ||
/** | ||
@@ -47,0 +47,0 @@ * check if the contract is already deployed. |
@@ -8,3 +8,3 @@ "use strict"; | ||
const ethers_1 = require("ethers"); | ||
const typechain_1 = require("./typechain"); // TODOS: change to biconomy contracts | ||
const typechain_1 = require("./typechain"); | ||
const utils_1 = require("ethers/lib/utils"); | ||
@@ -58,3 +58,5 @@ const BaseAccountAPI_1 = require("./BaseAccountAPI"); | ||
} | ||
return await this.provider.getTransactionCount(this.accountAddress || '0x0000000000000000000000000000000000000000'); | ||
this.accountContract = typechain_1.SimpleAccount__factory.connect(this.accountAddress, this.provider); | ||
return this.accountContract.nonce; | ||
// return await this.provider.getTransactionCount(this.accountAddress || '0x0000000000000000000000000000000000000000'); | ||
} | ||
@@ -69,3 +71,3 @@ /** | ||
const accountContract = await this._getAccountContract(); | ||
return accountContract.interface.encodeFunctionData('executeCall', // From execute => executeCALL method | ||
return accountContract.interface.encodeFunctionData('executeCall', // From execute => executeCall method | ||
[ | ||
@@ -72,0 +74,0 @@ target, |
{ | ||
"name": "space-bico-account-abstraction", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"main": "./dist/src/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -101,3 +101,3 @@ import { ethers, BigNumber, BigNumberish } from 'ethers' | ||
// TODO: check if right wrong biconmy | ||
// TODOS: check if right wrong biconmy | ||
/** | ||
@@ -104,0 +104,0 @@ * check if the contract is already deployed. |
@@ -6,3 +6,3 @@ import { BigNumber, BigNumberish, ethers } from 'ethers' | ||
SimpleAccountFactory__factory | ||
} from './typechain' // TODOS: change to biconomy contracts | ||
} from './typechain' | ||
@@ -84,3 +84,5 @@ import { arrayify, hexConcat } from 'ethers/lib/utils' | ||
} | ||
return await this.provider.getTransactionCount(this.accountAddress || '0x0000000000000000000000000000000000000000'); | ||
this.accountContract = SimpleAccount__factory.connect(this.accountAddress!, this.provider) | ||
return this.accountContract.nonce; | ||
// return await this.provider.getTransactionCount(this.accountAddress || '0x0000000000000000000000000000000000000000'); | ||
} | ||
@@ -97,3 +99,3 @@ | ||
return accountContract.interface.encodeFunctionData( | ||
'executeCall', // From execute => executeCALL method | ||
'executeCall', // From execute => executeCall method | ||
[ | ||
@@ -100,0 +102,0 @@ target, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
9739609
197645
0