-
Notifications
You must be signed in to change notification settings - Fork 86
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
feat: Update contract leaf size #450
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
6b29ade
Update contract leaf size
bvrooman d2dae31
Fix clippy
bvrooman 022c3cb
Update snapshots
bvrooman 5b026ad
Add comments
bvrooman 3a73a8f
Update contract.rs
bvrooman 7b6e197
Multi leaf snapshot test
bvrooman 8acf59d
Add test for padding
bvrooman 56a5429
Merge branch 'master' into bvrooman/feat/update-contract-leaf-size
7e11b85
Partial leaf state root test
bvrooman b4e3afc
Parameterize tests
bvrooman ab183e9
Merge branch 'master' into bvrooman/feat/update-contract-leaf-size
1ee526f
Use constant for multiple
bvrooman cf5e378
Merge branch 'bvrooman/feat/update-contract-leaf-size' of https://git…
bvrooman abfb76a
Clippy
bvrooman 6d50f04
Merge branch 'master' into bvrooman/feat/update-contract-leaf-size
xgreenx 3699022
Update fuel-tx/src/contract.rs
177166e
Pad only if final leaf is not a multiple
bvrooman 44ca83a
Simplify padded leaf creation
bvrooman c845d97
Update check
bvrooman c1d5089
Update CHANGELOG.md
bvrooman a2aca31
Update CHANGELOG.md
f8e5f86
Merge branch 'master' into bvrooman/feat/update-contract-leaf-size
2e34d9a
Update CHANGELOG.md
bvrooman 6c50d34
Merge branch 'bvrooman/feat/update-contract-leaf-size' of https://git…
bvrooman e488873
Merge branch 'master' into bvrooman/feat/update-contract-leaf-size
8aaf009
Merge branch 'master' into bvrooman/feat/update-contract-leaf-size
45553f0
Use array over vec
bvrooman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
fuel-tx/src/snapshots/fuel_tx__contract__tests__code_root_snapshot@instructions-10.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
source: src/contract.rs | ||
source: fuel-tx/src/contract.rs | ||
expression: root | ||
--- | ||
0xdfd9ba908fe30fa53247b1b8c4a37b02a62e8470c24b9d8bf2e01e91dd21edb9 | ||
0xa76dcae4273663c47ad70ea4b7a0910966a940fc69f49c7dbf1f8a91a9343398 |
4 changes: 2 additions & 2 deletions
4
fuel-tx/src/snapshots/fuel_tx__contract__tests__code_root_snapshot@instructions-100.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
source: src/contract.rs | ||
source: fuel-tx/src/contract.rs | ||
expression: root | ||
--- | ||
0x2e98c3969a9dd6195000957d4c63f719bb1c456ead6a10c812f3db225ee8a290 | ||
0xcf783d15cd098add2e2fbec2d68ac40838fd7d2801750af65684b141f69adb09 |
4 changes: 2 additions & 2 deletions
4
fuel-tx/src/snapshots/fuel_tx__contract__tests__code_root_snapshot@instructions-3.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
source: src/contract.rs | ||
source: fuel-tx/src/contract.rs | ||
expression: root | ||
--- | ||
0x8c02461a4b9aee7faf2e8244ddd0bb9ad8e30bf4e16528d7dcaa8ec991f0cb18 | ||
0x2a8c1cfb7fa96084eb0e7415af3321a87a66e915aae247f71f4408ffea476e0a |
4 changes: 2 additions & 2 deletions
4
fuel-tx/src/snapshots/fuel_tx__contract__tests__code_root_snapshot@instructions-4.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
source: src/contract.rs | ||
source: fuel-tx/src/contract.rs | ||
expression: root | ||
--- | ||
0x8f2e2a02e895166cacd261c55cede7c57a9174aa3f7d006ec548f0bac9e83048 | ||
0xec264ca4b7571f3c322b79889b04ed6b8c0e2dd9a5c5070c0d9d540111026d23 |
4 changes: 2 additions & 2 deletions
4
fuel-tx/src/snapshots/fuel_tx__contract__tests__code_root_snapshot@instructions-5.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
source: src/contract.rs | ||
source: fuel-tx/src/contract.rs | ||
expression: root | ||
--- | ||
0x72f7ae5aab24e266bd35ae505309d55569bae110f9383b4bada38b134bf6acb2 | ||
0x486fb1dccad030b63f0a694c21752774997ae44a18dfe482cb50b8a3c8deb068 |
4 changes: 2 additions & 2 deletions
4
fuel-tx/src/snapshots/fuel_tx__contract__tests__code_root_snapshot@instructions-6.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
source: src/contract.rs | ||
source: fuel-tx/src/contract.rs | ||
expression: root | ||
--- | ||
0xc2f498aa34efbc1a3628564d3d5fd462d27837253fe77b94ac188f0156b41e87 | ||
0x56328e86da5dde2e47bdd4119a1d186b0683ca069d4b79e5663667a355fe5db6 |
4 changes: 2 additions & 2 deletions
4
fuel-tx/src/snapshots/fuel_tx__contract__tests__code_root_snapshot@instructions-7.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
source: src/contract.rs | ||
source: fuel-tx/src/contract.rs | ||
expression: root | ||
--- | ||
0xff904a16917de130c801eef68dd89509beed5a3a06e8e81f9be5837a33b4d860 | ||
0xaf9fe23938748581d8614d87a171d2cbf4ff465ae0d9efcaece798b231896293 |
4 changes: 2 additions & 2 deletions
4
fuel-tx/src/snapshots/fuel_tx__contract__tests__code_root_snapshot@instructions-8.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
source: src/contract.rs | ||
source: fuel-tx/src/contract.rs | ||
expression: root | ||
--- | ||
0x7bf45deb56341e3a7c6904a756724a1b1d6fc23c963c688536d382db01734498 | ||
0xccb9334aa0212f5ddbffd160bd1dd0594c36ffdff8ee34a2751d7158d318055e |
4 changes: 2 additions & 2 deletions
4
fuel-tx/src/snapshots/fuel_tx__contract__tests__code_root_snapshot@instructions-9.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
source: src/contract.rs | ||
source: fuel-tx/src/contract.rs | ||
expression: root | ||
--- | ||
0xb2728a5291dc67b0bc8299a2268f8f6197d7fcc9dceead7c27916102f519f718 | ||
0x8e3dc4153c1c687713bade23a179fc4d419b37f2ff278c59de5fc9c535be7c8c |
5 changes: 5 additions & 0 deletions
5
...shots/fuel_tx__contract__tests__multi_leaf_state_root_snapshot@multi-leaf-state-root.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
source: fuel-tx/src/contract.rs | ||
expression: root | ||
--- | ||
0x573bf26ecbfae1dfe079dbcea08defc35e280787b0be24a4683c0e3a48cee837 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
should we have a unit test to verify padding behavior?
e.g. compare with a manually constructed leaf vs the chunking algorithm above