Skip to content

Commit

Permalink
remove block data from getFeeData to be compatible with both quai and qi
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlincecum committed Mar 14, 2024
1 parent 0837a1e commit 462aecc
Show file tree
Hide file tree
Showing 15 changed files with 43 additions and 39 deletions.
3 changes: 2 additions & 1 deletion lib.commonjs/providers/abstract-provider.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ export type PerformActionRequest = {
blockTag: BlockTag;
} | {
method: "getGasPrice";
txType: boolean;
} | {
method: "getLogs";
filter: PerformActionFilter;
Expand Down Expand Up @@ -348,7 +349,7 @@ export declare class AbstractProvider implements Provider {
*/
_getTransactionRequest(_request: TransactionRequest): PerformActionTransaction | Promise<PerformActionTransaction>;
getNetwork(): Promise<Network>;
getFeeData(): Promise<FeeData>;
getFeeData(txType?: boolean): Promise<FeeData>;
estimateGas(_tx: TransactionRequest): Promise<bigint>;
call(_tx: TransactionRequest): Promise<string>;
getBalance(address: AddressLike, blockTag?: BlockTag): Promise<bigint>;
Expand Down
2 changes: 1 addition & 1 deletion lib.commonjs/providers/abstract-provider.d.ts.map

Large diffs are not rendered by default.

19 changes: 9 additions & 10 deletions lib.commonjs/providers/abstract-provider.js

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

2 changes: 1 addition & 1 deletion lib.commonjs/providers/abstract-provider.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib.commonjs/providers/provider-jsonrpc.d.ts.map

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

5 changes: 4 additions & 1 deletion lib.commonjs/providers/provider-jsonrpc.js

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

2 changes: 1 addition & 1 deletion lib.commonjs/providers/provider-jsonrpc.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion lib.esm/providers/abstract-provider.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ export type PerformActionRequest = {
blockTag: BlockTag;
} | {
method: "getGasPrice";
txType: boolean;
} | {
method: "getLogs";
filter: PerformActionFilter;
Expand Down Expand Up @@ -348,7 +349,7 @@ export declare class AbstractProvider implements Provider {
*/
_getTransactionRequest(_request: TransactionRequest): PerformActionTransaction | Promise<PerformActionTransaction>;
getNetwork(): Promise<Network>;
getFeeData(): Promise<FeeData>;
getFeeData(txType?: boolean): Promise<FeeData>;
estimateGas(_tx: TransactionRequest): Promise<bigint>;
call(_tx: TransactionRequest): Promise<string>;
getBalance(address: AddressLike, blockTag?: BlockTag): Promise<bigint>;
Expand Down
Loading

0 comments on commit 462aecc

Please sign in to comment.