(bytecode: string)
| 30 | ) {} |
| 31 | |
| 32 | static async #parse(bytecode: string): Promise<Bytecode> { |
| 33 | const bytecodeBytes = hexStringToBytes(bytecode); |
| 34 | |
| 35 | const solcVersion = await inferSolcVersion(bytecodeBytes); |
| 36 | const executableSection = bytecode.slice( |
| 37 | 0, |
| 38 | bytecode.length - getMetadataSectionBytesLength(bytecodeBytes) * 2, |
| 39 | ); |
| 40 | |
| 41 | return new Bytecode(bytecode, solcVersion, executableSection); |
| 42 | } |
| 43 | |
| 44 | public static async getDeployedContractBytecode( |
| 45 | provider: EthereumProvider, |
no test coverage detected