Skip to content

Commit 1a91779

Browse files
Merge pull request #480 from rainlanguage/magic-number-error-offset
Add magic number to parse error offsets
2 parents 1180174 + d952d4b commit 1a91779

44 files changed

Lines changed: 342 additions & 167 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

flake.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

script/BuildPointers.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ contract BuildPointers is Script {
3030
/// @notice Generates a Solidity address constant declaration string.
3131
/// @param addr The address value.
3232
/// @return A string containing the Solidity code for the address constant.
33-
function addressConstantString(address addr) internal view returns (string memory) {
33+
function addressConstantString(address addr) internal pure returns (string memory) {
3434
return string.concat(
3535
"\n",
3636
"/// @dev The deterministic deploy address of the contract when deployed via\n",

src/generated/Rainlang.pointers.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ pragma solidity ^0.8.25;
1010
// file needs the contract to exist so that it can be compiled.
1111

1212
/// @dev Hash of the known bytecode.
13-
bytes32 constant BYTECODE_HASH = bytes32(0xeb2e198804bcd1c08912d1467d176866536d12937ad18776552bf99a648581e7);
13+
bytes32 constant BYTECODE_HASH = bytes32(0x986993ae9bce39b2b7396c4e3e0df86f4ffecd5bcc191cb38391ddd697a7254f);
1414

1515
/// @dev The deterministic deploy address of the contract when deployed via
1616
/// the Zoltu factory.
17-
address constant DEPLOYED_ADDRESS = address(0xb1E2C031d906D2C96B825AC7B18A476E1DaC5B9f);
17+
address constant DEPLOYED_ADDRESS = address(0x52F99eEff08a29fb1a7E7D7753d18caBeb28F8e7);
1818

1919
/// @dev The creation bytecode of the contract.
2020
bytes constant CREATION_CODE =
21-
hex"6080604052348015600e575f80fd5b506101f78061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610064575f3560e01c8063107628021161004d57806310762802146100cb5780634501e517146100e5578063f2c4da93146100ff575f80fd5b806301ffc9a7146100685780630c1916a414610090575b5f80fd5b61007b6100763660046101b1565b610119565b60405190151581526020015b60405180910390f35b73dfc11de118ee6fcf787e2b17f42dc174bca4cf045b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610087565b73a4daeb07625879f4a584f92ddcbe3b64025ce11f6100a6565b73a8d499b9dcac7ec3373755e29911d9fa77ec79086100a6565b731aa775533e28b1d843e1a589034984e3a62005dc6100a6565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167fabaa01220000000000000000000000000000000000000000000000000000000014806101ab57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b5f602082840312156101c1575f80fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146101f0575f80fd5b939250505056";
21+
hex"6080604052348015600e575f80fd5b506101f78061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610064575f3560e01c8063107628021161004d57806310762802146100cb5780634501e517146100e5578063f2c4da93146100ff575f80fd5b806301ffc9a7146100685780630c1916a414610090575b5f80fd5b61007b6100763660046101b1565b610119565b60405190151581526020015b60405180910390f35b73a0c9a33f4d13576ad0ae36cd431466ae641a951f5b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610087565b73db9a055c24070bfac87f1a44dbaf34ac5ef7cb056100a6565b73a8d499b9dcac7ec3373755e29911d9fa77ec79086100a6565b731aa775533e28b1d843e1a589034984e3a62005dc6100a6565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167fabaa01220000000000000000000000000000000000000000000000000000000014806101ab57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b5f602082840312156101c1575f80fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146101f0575f80fd5b939250505056";
2222

2323
/// @dev The runtime bytecode of the contract.
2424
bytes constant RUNTIME_CODE =
25-
hex"608060405234801561000f575f80fd5b5060043610610064575f3560e01c8063107628021161004d57806310762802146100cb5780634501e517146100e5578063f2c4da93146100ff575f80fd5b806301ffc9a7146100685780630c1916a414610090575b5f80fd5b61007b6100763660046101b1565b610119565b60405190151581526020015b60405180910390f35b73dfc11de118ee6fcf787e2b17f42dc174bca4cf045b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610087565b73a4daeb07625879f4a584f92ddcbe3b64025ce11f6100a6565b73a8d499b9dcac7ec3373755e29911d9fa77ec79086100a6565b731aa775533e28b1d843e1a589034984e3a62005dc6100a6565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167fabaa01220000000000000000000000000000000000000000000000000000000014806101ab57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b5f602082840312156101c1575f80fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146101f0575f80fd5b939250505056";
25+
hex"608060405234801561000f575f80fd5b5060043610610064575f3560e01c8063107628021161004d57806310762802146100cb5780634501e517146100e5578063f2c4da93146100ff575f80fd5b806301ffc9a7146100685780630c1916a414610090575b5f80fd5b61007b6100763660046101b1565b610119565b60405190151581526020015b60405180910390f35b73a0c9a33f4d13576ad0ae36cd431466ae641a951f5b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610087565b73db9a055c24070bfac87f1a44dbaf34ac5ef7cb056100a6565b73a8d499b9dcac7ec3373755e29911d9fa77ec79086100a6565b731aa775533e28b1d843e1a589034984e3a62005dc6100a6565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167fabaa01220000000000000000000000000000000000000000000000000000000014806101ab57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b5f602082840312156101c1575f80fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146101f0575f80fd5b939250505056";

0 commit comments

Comments
 (0)