squid-js/test/unit/mocks/ContractBase.Mock.ts

16 lines
452 B
TypeScript
Raw Normal View History

2020-01-30 22:08:18 +01:00
import ContractBase from '../../../src/keeper/contracts/ContractBase'
2018-10-18 09:19:10 +02:00
2018-10-18 13:12:23 +02:00
export default class ContractBaseMock extends ContractBase {
public async initMock(config: any) {
await this.init(config)
2018-10-18 09:19:10 +02:00
}
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)
2018-10-18 09:19:10 +02:00
}
}