Skip to content

Commit

Permalink
Merge pull request #19 from getsafle/dev
Browse files Browse the repository at this point in the history
Merging dev into test
  • Loading branch information
sshubhamagg authored Dec 18, 2023
2 parents bd40bfb + c44c0b1 commit e1c32a7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,11 @@
- Added sign() to sign a message or transaction and get signature along with v,r,s.
- Added getBalance() to fetch the balance in native currency.
- Added getFee() method for gas estimation for the Type-2 transactions.
- Added support for EIP 1559 Type-2 transactions.
- Added support for EIP 1559 Type-2 transactions.

### 1.0.0 (2023-12-18)

#### Bugfix changed path in package.json

- Changed 'main' path in package.json.
- Updated version.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@getsafle/vault-base-controller",
"version": "1.0.0",
"version": "1.0.1",
"description": "Base blockchain controller for Safle Vault",
"main": "index.js",
"main": "src/index.js",
"scripts": {
"lint": "eslint . --ext .js",
"lint:fix": "eslint --fix . --ext .js",
Expand Down
10 changes: 1 addition & 9 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -536,22 +536,14 @@ class KeyringController extends EventEmitter {
}
}
/**
* get Fees method to get the fees for reqiured chainId for avalanche
* get Fees method to get the fees for reqiured chainId for Base
*
* returns the object having gasLimit and fees for the block
*
* @param {Object} rawTx - Rawtransaction - {from,to,value,data}
* @param {Object} web3 - web3 object.
* @returns {Object} - gasLimit for the transaction and {maxFeePerGas,maxPriorityFeePerGas} for the transaction
*/

/**
* get Fees method to get the fees for Base Chain
*
* @param {Object} rawTx - Rawtransaction - {from,to,value,data, chainId}
* @param {Object} web3 - web3 object.
* @returns {Object} - gasLimit for the transaction and fees for the transaction
*/
async getFees(rawTx, web3) {
const { from, to, value, data } = rawTx
const gasLimit = await web3.eth.estimateGas({ to, from, value, data });
Expand Down

0 comments on commit e1c32a7

Please sign in to comment.