Skip to content

Commit

Permalink
šŸ› fix solve higher order solution
Browse files Browse the repository at this point in the history
  • Loading branch information
cairoeth committed Apr 11, 2024
1 parent 2bed596 commit 345afbc
Show file tree
Hide file tree
Showing 58 changed files with 60 additions and 65 deletions.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/out/Base.sol/CommonBase.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/out/Base.sol/ScriptBase.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/out/Base.sol/TestBase.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/out/Dummy.sol/Dummy.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"abi":[{"type":"function","name":"completed","inputs":[],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"setCompleted","inputs":[{"name":"_completed","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"}],"bytecode":{"object":"0x608060405234801561000f575f80fd5b5060cc8061001c5f395ff3fe6080604052348015600e575f80fd5b50600436106030575f3560e01c80639d9a7fe9146034578063f51f4738146053575b5f80fd5b5f54603f9060ff1681565b604051901515815260200160405180910390f35b6070605e3660046072565b5f805460ff1916911515919091179055565b005b5f602082840312156081575f80fd5b81358015158114608f575f80fd5b939250505056fea26469706673582212202f94ec7b55ec6c84c0ab4147d49c73013beaad07b3b53038b0cf3a86c10dbe6364736f6c63430008180033","sourceMap":"57:136:73:-:0;;;;;;;;;;;;;;;;;;;","linkReferences":{}},"deployedBytecode":{"object":"0x6080604052348015600e575f80fd5b50600436106030575f3560e01c80639d9a7fe9146034578063f51f4738146053575b5f80fd5b5f54603f9060ff1681565b604051901515815260200160405180910390f35b6070605e3660046072565b5f805460ff1916911515919091179055565b005b5f602082840312156081575f80fd5b81358015158114608f575f80fd5b939250505056fea26469706673582212202f94ec7b55ec6c84c0ab4147d49c73013beaad07b3b53038b0cf3a86c10dbe6364736f6c63430008180033","sourceMap":"57:136:73:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78:21;;;;;;;;;;;;179:14:155;;172:22;154:41;;142:2;127:18;78:21:73;;;;;;;106:85;;;;;;:::i;:::-;162:9;:22;;-1:-1:-1;;162:22:73;;;;;;;;;;106:85;;;206:273:155;262:6;315:2;303:9;294:7;290:23;286:32;283:52;;;331:1;328;321:12;283:52;370:9;357:23;423:5;416:13;409:21;402:5;399:32;389:60;;445:1;442;435:12;389:60;468:5;206:273;-1:-1:-1;;;206:273:155:o","linkReferences":{}},"methodIdentifiers":{"completed()":"9d9a7fe9","setCompleted(bool)":"f51f4738"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"completed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"_completed\",\"type\":\"bool\"}],\"name\":\"setCompleted\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/levels/Dummy.sol\":\"Dummy\"},\"evmVersion\":\"shanghai\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[\":ds-test/=lib/openzeppelin-contracts-upgradeable/lib/forge-std/lib/ds-test/src/\",\":erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/\",\":forge-std/=lib/forge-std/src/\",\":openzeppelin-contracts-06/=lib/openzeppelin-contracts-06/contracts/\",\":openzeppelin-contracts-08/=lib/openzeppelin-contracts-08/contracts/\",\":openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/\",\":openzeppelin-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/\",\":openzeppelin/=lib/openzeppelin-contracts-upgradeable/contracts/\"]},\"sources\":{\"src/levels/Dummy.sol\":{\"keccak256\":\"0xe3393595725cfccb5148374ec33aff5c3034a08a38d02495c10cdd9ec1a21df5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://78815ecbdbc5f234fa263dba37eb548ef1dfe9e8e170454c29a168fa852e8339\",\"dweb:/ipfs/QmdEfVevGgeHFCG3L14izL56q6TY3v4AiRPHcCdQCjNEZD\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.24+commit.e11b9ed9"},"language":"Solidity","output":{"abi":[{"inputs":[],"stateMutability":"view","type":"function","name":"completed","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[{"internalType":"bool","name":"_completed","type":"bool"}],"stateMutability":"nonpayable","type":"function","name":"setCompleted"}],"devdoc":{"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"remappings":["ds-test/=lib/openzeppelin-contracts-upgradeable/lib/forge-std/lib/ds-test/src/","erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/","forge-std/=lib/forge-std/src/","openzeppelin-contracts-06/=lib/openzeppelin-contracts-06/contracts/","openzeppelin-contracts-08/=lib/openzeppelin-contracts-08/contracts/","openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/","openzeppelin-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/","openzeppelin/=lib/openzeppelin-contracts-upgradeable/contracts/"],"optimizer":{"enabled":true,"runs":1000},"metadata":{"bytecodeHash":"ipfs"},"compilationTarget":{"src/levels/Dummy.sol":"Dummy"},"evmVersion":"shanghai","libraries":{}},"sources":{"src/levels/Dummy.sol":{"keccak256":"0xe3393595725cfccb5148374ec33aff5c3034a08a38d02495c10cdd9ec1a21df5","urls":["bzz-raw://78815ecbdbc5f234fa263dba37eb548ef1dfe9e8e170454c29a168fa852e8339","dweb:/ipfs/QmdEfVevGgeHFCG3L14izL56q6TY3v4AiRPHcCdQCjNEZD"],"license":"MIT"}},"version":1},"ast":{"absolutePath":"src/levels/Dummy.sol","id":52096,"exportedSymbols":{"Dummy":[52095]},"nodeType":"SourceUnit","src":"32:162:73","nodes":[{"id":52082,"nodeType":"PragmaDirective","src":"32:23:73","nodes":[],"literals":["solidity","^","0.8",".0"]},{"id":52095,"nodeType":"ContractDefinition","src":"57:136:73","nodes":[{"id":52084,"nodeType":"VariableDeclaration","src":"78:21:73","nodes":[],"constant":false,"functionSelector":"9d9a7fe9","mutability":"mutable","name":"completed","nameLocation":"90:9:73","scope":52095,"stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":52083,"name":"bool","nodeType":"ElementaryTypeName","src":"78:4:73","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"public"},{"id":52094,"nodeType":"FunctionDefinition","src":"106:85:73","nodes":[],"body":{"id":52093,"nodeType":"Block","src":"152:39:73","nodes":[],"statements":[{"expression":{"id":52091,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":52089,"name":"completed","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":52084,"src":"162:9:73","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":52090,"name":"_completed","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":52086,"src":"174:10:73","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"162:22:73","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":52092,"nodeType":"ExpressionStatement","src":"162:22:73"}]},"functionSelector":"f51f4738","implemented":true,"kind":"function","modifiers":[],"name":"setCompleted","nameLocation":"115:12:73","parameters":{"id":52087,"nodeType":"ParameterList","parameters":[{"constant":false,"id":52086,"mutability":"mutable","name":"_completed","nameLocation":"133:10:73","nodeType":"VariableDeclaration","scope":52094,"src":"128:15:73","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":52085,"name":"bool","nodeType":"ElementaryTypeName","src":"128:4:73","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"src":"127:17:73"},"returnParameters":{"id":52088,"nodeType":"ParameterList","parameters":[],"src":"152:0:73"},"scope":52095,"stateMutability":"nonpayable","virtual":false,"visibility":"public"}],"abstract":false,"baseContracts":[],"canonicalName":"Dummy","contractDependencies":[],"contractKind":"contract","fullyImplemented":true,"linearizedBaseContracts":[52095],"name":"Dummy","nameLocation":"66:5:73","scope":52096,"usedErrors":[],"usedEvents":[]}],"license":"MIT"},"id":73}
{"abi":[{"type":"function","name":"completed","inputs":[],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"setCompleted","inputs":[{"name":"_completed","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"}],"bytecode":{"object":"0x6080604052348015600e575f80fd5b5060cc80601a5f395ff3fe6080604052348015600e575f80fd5b50600436106030575f3560e01c80639d9a7fe9146034578063f51f4738146053575b5f80fd5b5f54603f9060ff1681565b604051901515815260200160405180910390f35b6070605e3660046072565b5f805460ff1916911515919091179055565b005b5f602082840312156081575f80fd5b81358015158114608f575f80fd5b939250505056fea2646970667358221220cb0785bc01ba430516e4d47f5e77494f97c01889994836af1818b6e5279d3dea64736f6c63430008190033","sourceMap":"57:136:36:-:0;;;;;;;;;;;;;;;;;;;","linkReferences":{}},"deployedBytecode":{"object":"0x6080604052348015600e575f80fd5b50600436106030575f3560e01c80639d9a7fe9146034578063f51f4738146053575b5f80fd5b5f54603f9060ff1681565b604051901515815260200160405180910390f35b6070605e3660046072565b5f805460ff1916911515919091179055565b005b5f602082840312156081575f80fd5b81358015158114608f575f80fd5b939250505056fea2646970667358221220cb0785bc01ba430516e4d47f5e77494f97c01889994836af1818b6e5279d3dea64736f6c63430008190033","sourceMap":"57:136:36:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78:21;;;;;;;;;;;;179:14:43;;172:22;154:41;;142:2;127:18;78:21:36;;;;;;;106:85;;;;;;:::i;:::-;162:9;:22;;-1:-1:-1;;162:22:36;;;;;;;;;;106:85;;;206:273:43;262:6;315:2;303:9;294:7;290:23;286:32;283:52;;;331:1;328;321:12;283:52;370:9;357:23;423:5;416:13;409:21;402:5;399:32;389:60;;445:1;442;435:12;389:60;468:5;206:273;-1:-1:-1;;;206:273:43:o","linkReferences":{}},"methodIdentifiers":{"completed()":"9d9a7fe9","setCompleted(bool)":"f51f4738"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.25+commit.b61c2a91\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"completed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"_completed\",\"type\":\"bool\"}],\"name\":\"setCompleted\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/levels/Dummy.sol\":\"Dummy\"},\"evmVersion\":\"shanghai\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[\":ds-test/=lib/openzeppelin-contracts-upgradeable/lib/forge-std/lib/ds-test/src/\",\":erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/\",\":forge-std/=lib/forge-std/src/\",\":openzeppelin-contracts-06/=lib/openzeppelin-contracts-06/contracts/\",\":openzeppelin-contracts-08/=lib/openzeppelin-contracts-08/contracts/\",\":openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/\",\":openzeppelin-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/\",\":openzeppelin/=lib/openzeppelin-contracts-upgradeable/contracts/\"]},\"sources\":{\"src/levels/Dummy.sol\":{\"keccak256\":\"0xe3393595725cfccb5148374ec33aff5c3034a08a38d02495c10cdd9ec1a21df5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://78815ecbdbc5f234fa263dba37eb548ef1dfe9e8e170454c29a168fa852e8339\",\"dweb:/ipfs/QmdEfVevGgeHFCG3L14izL56q6TY3v4AiRPHcCdQCjNEZD\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.25+commit.b61c2a91"},"language":"Solidity","output":{"abi":[{"inputs":[],"stateMutability":"view","type":"function","name":"completed","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[{"internalType":"bool","name":"_completed","type":"bool"}],"stateMutability":"nonpayable","type":"function","name":"setCompleted"}],"devdoc":{"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"remappings":["ds-test/=lib/openzeppelin-contracts-upgradeable/lib/forge-std/lib/ds-test/src/","erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/","forge-std/=lib/forge-std/src/","openzeppelin-contracts-06/=lib/openzeppelin-contracts-06/contracts/","openzeppelin-contracts-08/=lib/openzeppelin-contracts-08/contracts/","openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/","openzeppelin-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/","openzeppelin/=lib/openzeppelin-contracts-upgradeable/contracts/"],"optimizer":{"enabled":true,"runs":1000},"metadata":{"bytecodeHash":"ipfs"},"compilationTarget":{"src/levels/Dummy.sol":"Dummy"},"evmVersion":"shanghai","libraries":{}},"sources":{"src/levels/Dummy.sol":{"keccak256":"0xe3393595725cfccb5148374ec33aff5c3034a08a38d02495c10cdd9ec1a21df5","urls":["bzz-raw://78815ecbdbc5f234fa263dba37eb548ef1dfe9e8e170454c29a168fa852e8339","dweb:/ipfs/QmdEfVevGgeHFCG3L14izL56q6TY3v4AiRPHcCdQCjNEZD"],"license":"MIT"}},"version":1},"id":36}
2 changes: 1 addition & 1 deletion contracts/out/DummyFactory.sol/DummyFactory.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/out/ERC1967Proxy.sol/ERC1967Proxy.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/out/ERC1967Upgrade.sol/ERC1967Upgrade.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/out/Ethernaut.sol/Ethernaut.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/out/Ethernaut.sol/IStatistics.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/out/HigherOrder.t.sol/HigherOrder.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/out/HigherOrder.t.sol/HigherOrderAttack.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/out/HigherOrder.t.sol/TestHigherOrder.json

Large diffs are not rendered by default.

Loading

0 comments on commit 345afbc

Please sign in to comment.