Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

chore: upgrade @ethereumjs/vm to v6.0.0 #3656

Merged
merged 96 commits into from Sep 23, 2022
Merged

chore: upgrade @ethereumjs/vm to v6.0.0 #3656

merged 96 commits into from Sep 23, 2022

Conversation

MicaiahReid
Copy link
Contributor

@MicaiahReid MicaiahReid commented Sep 14, 2022

Fixes #3473
Fixes #3578

@MicaiahReid MicaiahReid changed the base branch from develop to the-merge September 15, 2022 00:55
src/chains/ethereum/ethereum/src/database.ts Show resolved Hide resolved
src/chains/ethereum/ethereum/src/database.ts Show resolved Hide resolved
src/chains/ethereum/ethereum/src/database.ts Outdated Show resolved Hide resolved
src/chains/ethereum/ethereum/src/database.ts Outdated Show resolved Hide resolved
src/chains/ethereum/ethereum/src/database.ts Outdated Show resolved Hide resolved
const intToBuffer = (value: number) =>
value === 0 ? BUFFER_EMPTY : uintToBuffer(value);
const _bigintToBuffer = (value: bigint) =>
value === 0n ? BUFFER_EMPTY : bigIntToBuffer(value);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we build this into bigIntToBuffer? Seems like a logical thing to do in all cases, not just this one.

@@ -381,7 +381,7 @@ describe("@ganache/ethereum-transaction", async () => {
assert.notDeepStrictEqual(vmTx.hash().toString(), "");
});
it("has nonce property", () => {
assert.strictEqual(vmTx.nonce.toString(), "0");
assert("nonce" in vmTx);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are no longer asserting the value of nonce here

src/chains/ethereum/ethereum/src/helpers/gas-estimator.ts Outdated Show resolved Hide resolved
@MicaiahReid MicaiahReid changed the title feat: upgrade ejs to v6.0.0 chore: upgrade ejs to v6.0.0 Sep 22, 2022
@MicaiahReid MicaiahReid changed the title chore: upgrade ejs to v6.0.0 chore: upgrade @ethereumjs/vm to v6.0.0 Sep 22, 2022
@MicaiahReid MicaiahReid merged commit a607956 into the-merge Sep 23, 2022
@MicaiahReid MicaiahReid deleted the ejsbeta branch September 23, 2022 19:44
MicaiahReid added a commit that referenced this pull request Nov 14, 2022
Co-authored-by: David Murdoch <david@davidmurdoch.com>
MicaiahReid added a commit that referenced this pull request Nov 14, 2022
Co-authored-by: David Murdoch <david@davidmurdoch.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gas could theoretically go over NUMBER.MAX_SAFE_INTEGER in blockchain.traceTransaction
4 participants