Skip to content

Commit

Permalink
refactor(compiler)!: remove getBytecodeCompilerVersion
Browse files Browse the repository at this point in the history
use sdk.compilerApi.getCompilerVersion instead
  • Loading branch information
davidyuk committed Jan 24, 2022
1 parent f351535 commit 13283be
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
4 changes: 0 additions & 4 deletions src/contract/compiler.js
Expand Up @@ -180,10 +180,6 @@ export default AsyncInit.compose(ContractBase, {
getFateAssembler (bytecode, options) {
this._ensureCompilerReady()
return this.compilerApi.getFateAssemblerCode({ bytecode, options })
},
getBytecodeCompilerVersion (bytecode, options) {
this._ensureCompilerReady()
return this.compilerApi.getCompilerVersion({ bytecode, options })
}
},
props: {
Expand Down
3 changes: 1 addition & 2 deletions src/contract/index.js
Expand Up @@ -46,8 +46,7 @@ const ContractBase = stampit(required({
getCompilerVersion: required,
contractDecodeCallResultAPI: required,
validateByteCodeAPI: required,
getFateAssembler: required,
getBytecodeCompilerVersion: required
getFateAssembler: required
}
}))

Expand Down
6 changes: 0 additions & 6 deletions test/integration/contract.js
Expand Up @@ -317,12 +317,6 @@ describe('Contract', function () {
assembler.should.be.a('string')
})

it('Get compiler version from bytecode', async () => {
const { version } = await sdk.getBytecodeCompilerVersion(bytecode)
version.should.be.a('string')
version.split('.').length.should.be.equal(3)
})

it('get contract ACI', async () => {
const aci = await sdk.contractGetACI(identityContract)
aci.should.have.property('interface')
Expand Down

0 comments on commit 13283be

Please sign in to comment.