Juan Ignacio Pérez Sacristán

Results 35 comments of Juan Ignacio Pérez Sacristán

After adding event, tests are not passing: ``` Error: Transaction reverted: trying to deploy a contract whose code is too large ```

Added event ToggleFunctionPause: https://github.com/DistributedCollective/Sovryn-smart-contracts/commit/6dec0cf13677e78a6e8a90b4a211e1cdc0c4b1b8 Added event check on test: https://github.com/DistributedCollective/Sovryn-smart-contracts/commit/b7bcb0568ca6235c60c496374a2920727d48042b

Reporting results at: https://docs.google.com/spreadsheets/d/1qgpTpM2pXKF4QaJnTFzsupv839judvlJJ3xlp22lUEg/edit?usp=sharing

The script now automatically creates a CSV result file exported to Google Docs at: https://docs.google.com/spreadsheets/d/1SPeqBk7vRxKlSlvDqKycSRsxFjEGRUj9O-XMr-YMG_8/edit?usp=sharing

Script completed: SOVRYN TOTAL FREQUENCIES: EXP: 242 ADDMOD: 4 SMOD: 12 MULMOD: 3 CREATE2: 10 SELFDESTRUCT: 6 AMM TOTAL FREQUENCIES: EXP: 3716 ADDMOD: 3 SMOD: 7 MULMOD: 7 CREATE2: 1...

Hardhat compilation output gives 2 opcode sets for every contract: "bytecode" and "deployedBytecode" The script is using "bytecode" because it uses to be a bit larger than "deployedBytecode"

The compiler can also generate a mapping from the bytecode to the range in the source code that generated the instruction. https://docs.soliditylang.org/en/v0.7.5/internals/source_mappings.html https://ethereum.stackexchange.com/questions/25479/how-to-map-evm-trace-to-contract-source Next step is using this extra information...

Looked for libraries or external Python implementations of the sourcemap decoder, but no luck: https://github.com/search?l=Python&q=sourcemap&type=Repositories https://github.com/search?l=Python&q=solidity&type=Repositories

By using jsfiddle to track decoder values line by line: https://jsfiddle.net/73s6mjdn/ ``` srcmap = "24:101:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;24:101:0;;;;;;;"; const parsed = srcmap .split(";") ["24:101:0:-", "", "", "", "8:9:-1", "5:2", "", "", "30:1", "27",...

Sovryn-smart-contracts/contracts/modules/LoanMaintenance.sol 410,15: loansData = new LoanReturnData[](count);