mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
16 lines
456 B
TypeScript
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)
|
|
}
|
|
}
|