Skip to content

Commit

Permalink
add estimateGas method
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwalguptaofficial committed Apr 5, 2023
1 parent 53228fa commit b4a49f3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ethcontracts/core",
"version": "1.4.3",
"version": "1.4.4",
"description": "Readymade ethereum contracts implementation with support for all ethereum library.",
"main": "dist/npm.export.js",
"types": "dist/ts/index.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions src/abstracts/contract_method.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ export abstract class BaseContractMethod {
abstract read<T>(tx?: ITransactionRequestConfig,): Promise<T>;
abstract write(tx: ITransactionRequestConfig): TYPE_TRANSACTION_WRITE_RESULT;
abstract encodeABI(): any;

abstract estimateGas(config: ITransactionRequestConfig): Promise<number>;
}
12 changes: 6 additions & 6 deletions test/package-lock.json

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

2 changes: 1 addition & 1 deletion test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"typescript": "^4.9.3"
},
"dependencies": {
"@ethcontracts/core": "file:../ethcontracts-core-1.4.3.tgz",
"@ethcontracts/core": "file:../ethcontracts-core-1.4.4.tgz",
"@ethcontracts/ethers": "^1.0.0",
"@ethcontracts/web3": "^1.0.0",
"@openzeppelin/contracts": "^4.8.0",
Expand Down

0 comments on commit b4a49f3

Please sign in to comment.