Skip to content

sonatina: support gasprice builtin#1443

Merged
sbillig merged 1 commit into
argotorg:masterfrom
g-r-a-n-t:fix-1442
May 16, 2026
Merged

sonatina: support gasprice builtin#1443
sbillig merged 1 commit into
argotorg:masterfrom
g-r-a-n-t:fix-1442

Conversation

@g-r-a-n-t
Copy link
Copy Markdown
Collaborator

@g-r-a-n-t g-r-a-n-t commented May 14, 2026

Fixes #1442 by adding Sonatina backend lowering for gasprice (RuntimeBuiltin::GasPrice), emitting Sonatina IR evm_gas_price instead of returning unsupported.

Changes

  • Lower RuntimeBuiltin::GasPrice via Sonatina EvmGasPrice (crates/codegen/src/sonatina/lower_runtime.rs).
  • Add regression test asserting evm_gas_price appears in emitted Sonatina IR (crates/codegen/tests/sonatina_gasprice.rs).

Notes

There are other LowerError::Unsupported cases in Sonatina lowering, but they fall into broader categories (const-global encoding gaps, provider/object-ref vs raw-pointer/address-space constraints, and general place/copy/store lowering limitations).

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I don't think we need these tests.

@sbillig sbillig merged commit ff78fbc into argotorg:master May 16, 2026
7 checks passed
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.

gasprice

2 participants