Skip to content

Commit

Permalink
update: fix import issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Brianspha committed Nov 28, 2024
1 parent 946010e commit 34e018a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/compilers/src/compilers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use std::{

pub mod multi;
pub mod solc;
pub mod resolc;
pub mod vyper;
pub use vyper::*;

Expand Down
31 changes: 31 additions & 0 deletions test-data/resolc/input/compile-input.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"language": "Solidity",
"sources": {
"contracts/1_Storage.sol": {
"content": "// SPDX-License-Identifier: GPL-3.0\n\npragma solidity >=0.4.20 <0.9.0;\n\n/**\n * @title Storage\n * @dev Store & retrieve value in a variable\n * @custom:dev-run-script ./scripts/deploy_with_ethers.ts\n */\ncontract Storage {\n\n uint256 number;\n uint256 number1;\n /**\n * @dev Store value in variable\n * @param num value to store\n */\n function store(uint256 num) public {\n number = num;\n }\n\n /**\n * @dev Return value \n * @return value of 'number'\n */\n function retrieve() public view returns (uint256){\n return number;\n }\n}"
}
},
"settings": {
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"": ["ast"],
"*": [
"abi",
"metadata",
"devdoc",
"userdoc",
"storageLayout",
"evm.legacyAssembly",
"evm.deployedBytecode",
"evm.methodIdentifiers"
]
}
},
"remappings": []
}
}

0 comments on commit 34e018a

Please sign in to comment.