@0x:contracts-exchange Addressed review feedback

This commit is contained in:
Alex Towle
2019-08-29 00:31:30 -07:00
parent 75e6c45285
commit dba0d8469d
34 changed files with 510 additions and 291 deletions

View File

@@ -0,0 +1,8 @@
import { ContractArtifact } from 'ethereum-types';
/**
* Get the codesize of a provided artifact.
*/
export function getCodesizeFromArtifact(artifact: ContractArtifact): number {
return (artifact.compilerOutput.evm.bytecode.object.length - 2) / 2;
}

View File

@@ -48,3 +48,4 @@ export {
} from './types';
export { blockchainTests, BlockchainTestsEnvironment, describe } from './mocha_blockchain';
export { chaiSetup, expect } from './chai_setup';
export { getCodesizeFromArtifact } from './codesize';