-
Notifications
You must be signed in to change notification settings - Fork 1.2k
London support #1412
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
London support #1412
Conversation
e4a73ae
to
4944a39
Compare
el.querySelector('#gasprice').value = gasPriceValue | ||
onGasPriceChange() | ||
} | ||
if (el.querySelector('#maxfee') && network && network.lastBlock && network.lastBlock.baseFeePerGas && el.querySelector('#maxfee')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code duplication
const block = await web3.eth.getBlock('latest') | ||
// we can't use the blockGasLimit cause the next blocks could have a lower limit : https://github.com/ethereum/remix/issues/506 | ||
this.blockGasLimit = (block && block.gasLimit) ? Math.floor(block.gasLimit - (5 * block.gasLimit) / 1024) : this.blockGasLimitDefault | ||
this.lastBlock = block |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_updateChainContext
should be updated as soon as possible when a new provider is switched to.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"@ethereumjs/vm": "^5.4.1", | ||
"@ethereumjs/block": "^3.4.0", | ||
"@ethereumjs/tx": "^3.3.0", | ||
"@ethereumjs/vm": "^5.5.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might need to check what to do with maxFee
and maxPriorityFee
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think JavaScript VM (London)
should be first option in Environment
dropdown in Deploy and Run
<div> | ||
<div>You are about to create a transaction on the Main Network. Confirm the details to send the info to your provider. | ||
<br>The provider for many users is MetaMask. The provider will ask you to sign the transaction before it is sent to the Main Network.</div> | ||
<div>You are about to create a transaction on ${network.name}. Confirm the details to send the info to your provider. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe "...on ${network.name} network. ..." would be the correct info
<div>You are about to create a transaction on the Main Network. Confirm the details to send the info to your provider. | ||
<br>The provider for many users is MetaMask. The provider will ask you to sign the transaction before it is sent to the Main Network.</div> | ||
<div>You are about to create a transaction on ${network.name}. Confirm the details to send the info to your provider. | ||
<br>The provider for many users is MetaMask. The provider will ask you to sign the transaction before it is sent to ${network.name}.</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
Some notes about UI changes after a discussion/call (@Aniket-Engg @LianaHus)
|
880554a
to
c2e8a3c
Compare
ask the user to input maxFee and maxPriorityFee if the chain is eip 1559 enabled.
references for the implementation:
https://hackmd.io/4YVYKxxvRZGDto7aq7rVkg?view
https://github.com/ethereum/eth1.0-specs/blob/master/network-upgrades/ecosystem-readiness.md
EDIT: the last set of changes updates remix-ide to it default to London when the app starts
EDIT: this commit 533d7f9
use berlin
roll back unit testing to use berlin, fix for making sure tests run with london will come later