Skip to content

Commit

Permalink
Update/remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rileystephens28 committed Oct 17, 2024
1 parent 0f9082b commit 67b64e1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/hash/typed-data.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//import { TypedDataDomain, TypedDataField } from "@quaisproject/providerabstract-signer";
import { getAddress } from '../address/index.js';
import { keccak256 } from '../crypto/index.js';
import { recoverAddress } from '../address/index.js';
Expand Down
12 changes: 4 additions & 8 deletions src/providers/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,12 @@ export interface QuaiTransactionRequest {
gasLimit?: null | BigNumberish;

/**
* The gas price to use for legacy transactions or transactions on legacy networks.
*
* Most of the time the `max*FeePerGas` is preferred.
* The gas price to use for the transaction.
*/
gasPrice?: null | BigNumberish;

/**
* The [EIP-1559](https://eips.ethereum.org/EIPS/eip-1559) maximum priority fee to pay per gas.
* The tip to paid directly to the miner of the transaction.
*/
minerTip?: null | BigNumberish;

Expand Down Expand Up @@ -310,14 +308,12 @@ export interface QuaiPreparedTransactionRequest {
gasLimit?: bigint;

/**
* The gas price to use for legacy transactions or transactions on legacy networks.
*
* Most of the time the `max*FeePerGas` is preferred.
* The gas price to use for the transaction.
*/
gasPrice?: bigint;

/**
* The [EIP-1559](https://eips.ethereum.org/EIPS/eip-1559) maximum priority fee to pay per gas.
* The fee paid directly to the miner of the transaction.
*/
minerTip?: bigint;

Expand Down
2 changes: 1 addition & 1 deletion src/wallet/qi-hdwallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ export class QiHDWallet extends AbstractHDWallet {
const gasLimit = await this.provider.estimateGas(tx);
const feeData = await this.provider.getFeeData(originZone, false);

// Calculate total fee for the transaction
// 5.6 Calculate total fee for the transaction using the gasLimit, gasPrice, and minerTip
const totalFee = gasLimit * (feeData.gasPrice ?? 1n) + gasLimit * (feeData.minerTip ?? 0n);

// Get new selection with fee
Expand Down

0 comments on commit 67b64e1

Please sign in to comment.