-
Notifications
You must be signed in to change notification settings - Fork 2
interface update #421
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
interface update #421
Changes from all commits
5205a29
1fddbc7
0885338
f4a2288
727a995
bb44244
dc2d146
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,17 @@ | ||
| { | ||
| "lib/rain.interpreter.interface": { | ||
| "rev": "3c834ad7cc3e8e102cd6b353456b0f55200a47dc" | ||
| "rev": "2d06b797698d3ed2555e93162176479127a02b1a" | ||
| }, | ||
| "lib/rain.lib.memkv": { | ||
| "rev": "ce43236a4a483a240cc9f554be90cbcc360c6735" | ||
| "rev": "90efd9409786b50d691209c172ce3f4b74a54996" | ||
| }, | ||
| "lib/rain.metadata": { | ||
| "rev": "0fc7d0f21e28ab5360b23ba45a298d56313c5ab5" | ||
| "rev": "ce6a8fc92676cbd7eeb0019a22026e10fcd4273d" | ||
| }, | ||
| "lib/rain.string": { | ||
| "rev": "85d0074c8cd1fdca3285366c15bc9b44b84ad5e9" | ||
| "rev": "0b1ca08aed6d9c06b83fe127a7d20ee7002ead28" | ||
| }, | ||
| "lib/sol.lib.binmaskflag": { | ||
| "rev": "4c56ec185932b904fd7334990d63ef0544536cc6" | ||
| "rev": "3b0bbf05e38ee4a31ca65070e41b299fa6bcdf9e" | ||
| } | ||
| } |
| +12 −12 | .gas-snapshot | |
| +2 −2 | foundry.lock | |
| +1 −1 | foundry.toml | |
| +1 −1 | lib/openzeppelin-contracts | |
| +1 −1 | lib/rain.solmem |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -78,7 +78,7 @@ contract LibParseOperandParseOperandTest is Test { | |
| // Casting an int256 to uint256 does not truncate, and is required to | ||
| // build a hex string. | ||
| //forge-lint: disable-next-line(unsafe-typecast) | ||
| string memory valueString = asHex ? uint256(value).toHexString() : value.toString(); | ||
| string memory valueString = asHex ? uint256(value).toHexString() : value.toStringSigned(); | ||
| string memory s = string.concat("<", maybeWhitespaceA, valueString, maybeWhitespaceB, ">", suffix); | ||
|
|
||
| bytes32[] memory expectedValues = new bytes32[](1); | ||
|
|
@@ -117,9 +117,9 @@ contract LibParseOperandParseOperandTest is Test { | |
| // Casting an int256 to uint256 does not truncate, and is required to | ||
| // build a hex string. | ||
| //forge-lint: disable-next-line(unsafe-typecast) | ||
| string memory valueAString = asHexA ? uint256(valueA).toHexString() : valueA.toString(); | ||
| string memory valueAString = asHexA ? uint256(valueA).toHexString() : valueA.toStringSigned(); | ||
| //forge-lint: disable-next-line(unsafe-typecast) | ||
| string memory valueBString = asHexB ? uint256(valueB).toHexString() : valueB.toString(); | ||
| string memory valueBString = asHexB ? uint256(valueB).toHexString() : valueB.toStringSigned(); | ||
|
|
||
| string memory s = string.concat( | ||
| "<", maybeWhitespaceA, valueAString, maybeWhitespaceB, valueBString, maybeWhitespaceC, ">", suffix | ||
|
|
@@ -174,11 +174,11 @@ contract LibParseOperandParseOperandTest is Test { | |
| // Casting an int256 to uint256 does not truncate, and is required to | ||
| // build a hex string. | ||
| //forge-lint: disable-next-line(unsafe-typecast) | ||
| string memory valueAString = asHexA ? uint256(valueA).toHexString() : valueA.toString(); | ||
| string memory valueAString = asHexA ? uint256(valueA).toHexString() : valueA.toStringSigned(); | ||
| //forge-lint: disable-next-line(unsafe-typecast) | ||
| string memory valueBString = asHexB ? uint256(valueB).toHexString() : valueB.toString(); | ||
| string memory valueBString = asHexB ? uint256(valueB).toHexString() : valueB.toStringSigned(); | ||
| //forge-lint: disable-next-line(unsafe-typecast) | ||
| string memory valueCString = asHexC ? uint256(valueC).toHexString() : valueC.toString(); | ||
| string memory valueCString = asHexC ? uint256(valueC).toHexString() : valueC.toStringSigned(); | ||
|
|
||
| s = string.concat( | ||
| string.concat( | ||
|
|
@@ -236,10 +236,10 @@ contract LibParseOperandParseOperandTest is Test { | |
| + bytes(maybeWhitespace[2]).length + bytes(maybeWhitespace[3]).length + bytes(maybeWhitespace[4]).length; | ||
| } | ||
|
|
||
| string memory valueAString = asHex[0] ? uint256(values[0]).toHexString() : values[0].toString(); | ||
| string memory valueBString = asHex[1] ? uint256(values[1]).toHexString() : values[1].toString(); | ||
| string memory valueCString = asHex[2] ? uint256(values[2]).toHexString() : values[2].toString(); | ||
| string memory valueDString = asHex[3] ? uint256(values[3]).toHexString() : values[3].toString(); | ||
| string memory valueAString = asHex[0] ? uint256(values[0]).toHexString() : values[0].toStringSigned(); | ||
| string memory valueBString = asHex[1] ? uint256(values[1]).toHexString() : values[1].toStringSigned(); | ||
| string memory valueCString = asHex[2] ? uint256(values[2]).toHexString() : values[2].toStringSigned(); | ||
| string memory valueDString = asHex[3] ? uint256(values[3]).toHexString() : values[3].toStringSigned(); | ||
|
Comment on lines
+239
to
+242
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial Four-literal case matches prior patterns; optional helper extraction The four uses of 🤖 Prompt for AI Agents |
||
|
|
||
| { | ||
| expectedLength += bytes(valueAString).length + bytes(valueBString).length + bytes(valueCString).length | ||
|
|
||
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.
🧩 Analysis chain
🏁 Script executed:
Repository: rainlanguage/rain.interpreter
Length of output: 202
🏁 Script executed:
Repository: rainlanguage/rain.interpreter
Length of output: 1381
🏁 Script executed:
Repository: rainlanguage/rain.interpreter
Length of output: 2742
🏁 Script executed:
Repository: rainlanguage/rain.interpreter
Length of output: 751
🏁 Script executed:
Repository: rainlanguage/rain.interpreter
Length of output: 416
🏁 Script executed:
Repository: rainlanguage/rain.interpreter
Length of output: 2340
Clarify motivation and provide evidence that Cancun EVM upgrade has been tested.
Upgrading from Paris to Cancun EVM is a significant change affecting new opcodes, gas costs, and bytecode generation. The PR description lacks motivation for this change, and there's no evidence in the PR that the configuration has been validated with the existing test suite.
Before merging:
lib/rain.interpreter.interface🤖 Prompt for AI Agents