Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request #171 from ethereumjs/istanbul/eip-2028
Browse files Browse the repository at this point in the history
Add support for EIP-2028 for Istanbul
  • Loading branch information
holgerd77 authored Aug 29, 2019
2 parents b7c782a + acce166 commit ad75b65
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"author": "mjbecze <[email protected]>",
"license": "MPL-2.0",
"dependencies": {
"ethereumjs-common": "^1.3.0",
"ethereumjs-common": "^1.3.1",
"ethereumjs-util": "^6.0.0"
},
"devDependencies": {
Expand Down
10 changes: 10 additions & 0 deletions test/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,4 +410,14 @@ tape('[Transaction]: Basic functions', function(t) {
st.end()
},
)

t.test('should return correct data fee for istanbul', function(st) {
let tx = new Transaction({}, { hardfork: 'istanbul' })
st.equals(tx.getDataFee().toNumber(), 0)

tx = new Transaction(txFixtures[3].raw, { hardfork: 'istanbul' })
st.equals(tx.getDataFee().toNumber(), 1716)

st.end()
})
})

0 comments on commit ad75b65

Please sign in to comment.