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

ignoreGasPricing bug with wallet in context #6063

Closed
jdevcs opened this issue May 3, 2023 · 1 comment
Closed

ignoreGasPricing bug with wallet in context #6063

jdevcs opened this issue May 3, 2023 · 1 comment
Assignees
Labels
4.x 4.0 related Bug Addressing a bug

Comments

@jdevcs
Copy link
Contributor

jdevcs commented May 3, 2023

ignoreGasPricing flag is not considered while using local wallet.

With following scenario:

const web3 = new Web3(new HttpProvider("http://127.0.0.1:8080"));
const tx = {
  "from": "0x801040E2965D0cf9d73FEe4ccc8eEA9eeBbC491e",
  "to": "0x6Eb893e3466931517a04a17D153a6330c3f2f1dD",
  "nonce": 648,
  "gasLimit": "0x9d",
  "maxFeePerGas": "0x346d9246",
  "maxPriorityFeePerGas": "0x2c7e63",
  "data": "0x889e365e59664fb881554ba1175519b5195b1d20390beb806d8f2cda7893e6f79848195dba4c905db6d7257ffb5eefea35f18ae33c",
  "value": "0xc854",
  "accessList": [],
  "chainId": "0x8404bf1f"
};
web3.eth.wallet?.add(privateKey);

const k = await web3.eth.sendTransaction(tx,DEFAULT_RETURN_FORMAT,
{ignoreGasPricing: true,checkRevertBeforeSending:false},
);

getTransactionGasPricing is called in defaultTransactionBuilder even it was called earlier inside sendTransaction or not called earlier regardless of that,.

@jdevcs jdevcs added Bug Addressing a bug 4.x 4.0 related labels May 3, 2023
@spacesailor24 spacesailor24 self-assigned this May 8, 2023
@jdevcs
Copy link
Contributor Author

jdevcs commented May 8, 2023

@spacesailor24 This bug's fix is proposed in #6071 for making some tests to pass in 6071

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x 4.0 related Bug Addressing a bug
Projects
None yet
Development

No branches or pull requests

2 participants