Skip to content

Conversation

acolytec3
Copy link
Contributor

Addresses #3693 since the noble hex to bytes conversion utility is about 2x ours.

@holgerd77
Copy link
Member

Browser tests still failing

@holgerd77
Copy link
Member

Update: just read up on Discord, let me know if I should still deactivate the browser tests.

)
const status = p.decodeStatus({
chainId: [0x01],
chainId: Uint8Array.from([0x01]),
Copy link
Member

Choose a reason for hiding this comment

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

Why is this change now necessary?

Copy link
Contributor

Choose a reason for hiding this comment

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

the function accepted arrays before. Now it is limited to u8a

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Furthermore, this property is supposed to be a Uint8Array if you look at the types.

Copy link

codecov bot commented Sep 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.00%. Comparing base (4470cc3) to head (4cd5d80).
Report is 77 commits behind head on master.

❗ There is a different number of reports uploaded between BASE (4470cc3) and HEAD (4cd5d80). Click for more details.

HEAD has 3 uploads less than BASE
Flag BASE (4470cc3) HEAD (4cd5d80)
block 1 0
tx 1 0
wallet 1 0
Additional details and impacted files

Impacted file tree graph

Flag Coverage Δ
block ?
client 0.00% <ø> (ø)
tx ?
wallet ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link
Contributor

@am1r021 am1r021 left a comment

Choose a reason for hiding this comment

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

LGTM

@am1r021 am1r021 merged commit 3a7e07f into master Sep 24, 2024
40 of 41 checks passed
@am1r021 am1r021 deleted the FASTER-BYTES branch September 24, 2024 22:03
],
optimizeDeps: {
exclude: ['kzg-wasm'],
include: ['vite-plugin-node-polyfills/shims/buffer', 'vite-plugin-node-polyfills/shims/global', 'vite-plugin-node-polyfills/shims/process']
Copy link
Member

Choose a reason for hiding this comment

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

At first look, these additions seem to go against our as-pure-as-possible-browser-support direction strategy. 🤔

Is this something to further investigate (why needed, what changed, where to adjust)?

(I just created a non-minifed VM (so not: EVM) bundle as a first test and searched for "Buffer" but did not find anything suspicious)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would agree that this was my surface thought as well. We have these various shims by default as a part of the vite-plugin-node-polyfills dep for running our tests and vitest was having trouble reloading them or something (saw these messages about optimizing these deps over and over again in the logs) and the suggested fix was to add them to the optimizeDeps list in our config. Given the effort on getting rid of polyfills, we might be able to just get rid of that plugin though I'm not 100% sure. Worth researching.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants