diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2019-01-23 04:20:02 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2019-01-23 04:20:02 +0800 |
commit | 3e910c0e0371589da3cf4a67b420c781a1338e59 (patch) | |
tree | 5e934cae368fecf86207e6c949f43a05eae64a70 /packages/sol-tracing-utils/src | |
parent | 7c47c52fac8b65c893d313587cf443c0e84bd8cb (diff) | |
download | dexon-0x-contracts-3e910c0e0371589da3cf4a67b420c781a1338e59.tar dexon-0x-contracts-3e910c0e0371589da3cf4a67b420c781a1338e59.tar.gz dexon-0x-contracts-3e910c0e0371589da3cf4a67b420c781a1338e59.tar.bz2 dexon-0x-contracts-3e910c0e0371589da3cf4a67b420c781a1338e59.tar.lz dexon-0x-contracts-3e910c0e0371589da3cf4a67b420c781a1338e59.tar.xz dexon-0x-contracts-3e910c0e0371589da3cf4a67b420c781a1338e59.tar.zst dexon-0x-contracts-3e910c0e0371589da3cf4a67b420c781a1338e59.zip |
Refactor out isInterfaceContract
Diffstat (limited to 'packages/sol-tracing-utils/src')
-rw-r--r-- | packages/sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts b/packages/sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts index bf6dc3b2f..bfd3a504a 100644 --- a/packages/sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts +++ b/packages/sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts @@ -66,8 +66,8 @@ export class SolCompilerArtifactAdapter extends AbstractArtifactAdapter { runtimeBytecode: artifact.compilerOutput.evm.deployedBytecode.object, sourceMapRuntime: artifact.compilerOutput.evm.deployedBytecode.sourceMap, }; - if (contractData.bytecode === '0x' && contractData.runtimeBytecode === '0x') { - // That's an interface contract + const isInterfaceContract = contractData.bytecode === '0x' && contractData.runtimeBytecode === '0x'; + if (isInterfaceContract) { continue; } contractsData.push(contractData); |