1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00
ocean.js/test/unit/__mocks__/ContractBase.Mock.ts
2020-06-23 21:02:08 +02:00

16 lines
456 B
TypeScript

import ContractBase from '../../../src/datatokens/contracts/ContractBase'
export default class ContractBaseMock extends ContractBase {
public async initMock(config: any) {
await this.init(config)
}
public async callMock(name: string, args: any[], from?: string) {
return this.call(name, args, from)
}
public async sendMock(name: string, from: string, args: any[]) {
return this.send(name, from, args)
}
}