Skip to content

Commit

Permalink
refactor(compiler)!: remove getFateAssembler
Browse files Browse the repository at this point in the history
use sdk.compilerApi.getFateAssemblerCode instead
  • Loading branch information
davidyuk committed Jan 24, 2022
1 parent 13283be commit 165d492
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
4 changes: 0 additions & 4 deletions src/contract/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,6 @@ export default AsyncInit.compose(ContractBase, {
this._ensureCompilerReady()
const res = await this.compilerApi.validateByteCode({ bytecode, source, options })
return typeof res === 'object' ? true : res
},
getFateAssembler (bytecode, options) {
this._ensureCompilerReady()
return this.compilerApi.getFateAssemblerCode({ bytecode, options })
}
},
props: {
Expand Down
3 changes: 1 addition & 2 deletions src/contract/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ const ContractBase = stampit(required({
setCompilerUrl: required,
getCompilerVersion: required,
contractDecodeCallResultAPI: required,
validateByteCodeAPI: required,
getFateAssembler: required
validateByteCodeAPI: required
}
}))

Expand Down
7 changes: 0 additions & 7 deletions test/integration/contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,13 +310,6 @@ describe('Contract', function () {
)
})

it('Get FATE assembler', async () => {
const result = await sdk.getFateAssembler(bytecode)
result.should.be.a('object')
const assembler = result['fate-assembler']
assembler.should.be.a('string')
})

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

0 comments on commit 165d492

Please sign in to comment.