Skip to content

Various onchain fixes#291

Merged
RensR merged 3 commits into
developfrom
various-fixes
Nov 3, 2025
Merged

Various onchain fixes#291
RensR merged 3 commits into
developfrom
various-fixes

Conversation

@RensR
Copy link
Copy Markdown
Collaborator

@RensR RensR commented Oct 31, 2025

  • NPM dependency bumps
  • CI fix for releasing NPM packages
  • Various warnings in contracts
  • Foundry bump


- name: Publish to NPM (beta)
uses: smartcontractkit/.github/actions/ci-publish-npm@4b0ab756abcb1760cb82e1e87b94ff431905bffc # ci-publish-npm@0.4.0
uses: smartcontractkit/.github/actions/ci-publish-npm@ci-publish-npm/v1

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Solidity' step
Uses Step
uses 'smartcontractkit/.github/actions/ci-publish-npm' with ref 'ci-publish-npm/v1', not a pinned commit hash

- name: Publish to NPM (latest)
uses: smartcontractkit/.github/actions/ci-publish-npm@4b0ab756abcb1760cb82e1e87b94ff431905bffc # ci-publish-npm@0.4.0
uses: smartcontractkit/.github/actions/ci-publish-npm@ci-publish-npm/v1

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Solidity' step
Uses Step
uses 'smartcontractkit/.github/actions/ci-publish-npm' with ref 'ci-publish-npm/v1', not a pinned commit hash
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 31, 2025

Static analysis results are available

Hey @RensR, you can view Slither reports in the job summary here or download them as artifact here.
Please check them before merging and make sure you have addressed all issues.

@RensR RensR marked this pull request as ready for review November 3, 2025 08:46
@RensR RensR requested review from a team as code owners November 3, 2025 08:46
p2pIds[0] = keccak256(abi.encodePacked("invalid"));

vm.expectRevert(abi.encodeWithSelector(INodeInfoProvider.NodeDoesNotExist.selector, p2pIds[0]));
CapabilitiesRegistry.NodeInfo[] memory nodes = s_CapabilitiesRegistry.getNodesByP2PIds(p2pIds);
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

linting fixes in tests

Comment thread contracts/foundry.toml
libs = ['node_modules']
bytecode_hash = "none"
ffi = false
deny_warnings = true
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This makes warnings stop compilation by default. Below are a few projects that turn this off due to the existing warnings.

Comment thread contracts/foundry.toml
test = 'src/v0.8/shared/test'
solc_version = '0.8.26'
evm_version = 'paris'
ignored_error_codes = [8417]
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Can't fix this warning right now so ignoring it to allow enabling deny_warnings

Comment thread contracts/foundry.toml
# See more config options https://github.com/foundry-rs/foundry/tree/master/config

[lint]
lint_on_build = false No newline at end of file
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Needed for the forge bump

@RensR RensR enabled auto-merge (squash) November 3, 2025 09:15
Copy link
Copy Markdown
Contributor

@mohamed-mehany mohamed-mehany left a comment

Choose a reason for hiding this comment

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

L2EP changes look good!

@RensR RensR merged commit 88d9043 into develop Nov 3, 2025
54 checks passed
@RensR RensR deleted the various-fixes branch November 3, 2025 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants