Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix changed path package.json #18

Merged
merged 4 commits into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading