Skip to content

Switch writes to emit SpendValueInGasUnits as well as SpendValue in n… - #726

Merged
russell-stern merged 10 commits into
mainfrom
non_evm_metering
Aug 21, 2026
Merged

Switch writes to emit SpendValueInGasUnits as well as SpendValue in n…#726
russell-stern merged 10 commits into
mainfrom
non_evm_metering

Conversation

@russell-stern

Copy link
Copy Markdown
Contributor

…ative tokens

@github-actions

Copy link
Copy Markdown
Contributor

👋 russell-stern, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

func GetResponseMetadataWriteReport(fee *big.Float, chainSelector uint64) capabilities.ResponseMetadata {
// GetResponseMetadataWriteReport returns billing ResponseMetadata for a completed write-report
// submission.
func GetResponseMetadataWriteReport(feeInEth *big.Float, feeInWei *big.Int, chainSelector uint64) capabilities.ResponseMetadata {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For all GetResponseMetadataWriteReport, pass feeInWei and convert to legacy format in this method

patrickhuie19
patrickhuie19 previously approved these changes Aug 20, 2026
Comment thread integration_tests/utils/deploy.go Outdated
jmank88
jmank88 previously approved these changes Aug 21, 2026
Co-authored-by: Jordan Krage <jmank88@gmail.com>
jmank88
jmank88 previously approved these changes Aug 21, 2026
return nil, capabilities.ResponseMetadata{}, nil // should never happen
}

// buildPreSubmissionFatalReply evaluates node 0's failed tx and returns a fatal reply

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

do we still need this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't see it anywhere else in the codebase. The linter had it marked as unused


func startTestHTTPServer(t *testing.T, handler http.Handler) (net.Listener, func()) {
listener, err := net.Listen("tcp", "127.0.0.1:0")
listener, err := new(net.ListenConfig).Listen(context.Background(), "tcp", "127.0.0.1:0") //nolint:noctx // test code

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/nit use t.Context() instead of context.Background()


func CreateWasmBinary(t *testing.T, goFile string, wasmFile string) {
cmd := exec.Command("go", "build", "-o", wasmFile, goFile) // #nosec
cmd := exec.CommandContext(context.Background(), "go", "build", "-o", wasmFile, goFile) //nolint:noctx,gosec // test code

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/nit t.Context()

@cl-sonarqube-production

Copy link
Copy Markdown

Quality Gate failed Quality Gate failed

Failed conditions
74.5% Coverage on New Code (required ≥ 75%)

See analysis details on SonarQube

@russell-stern
russell-stern added this pull request to the merge queue Aug 21, 2026
Merged via the queue into main with commit 977e430 Aug 21, 2026
139 of 143 checks passed
@russell-stern
russell-stern deleted the non_evm_metering branch August 21, 2026 18:16
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.

4 participants