mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
typed lockPayments
This commit is contained in:
parent
e327e1275b
commit
0afbb8453d
@ -9,9 +9,9 @@ export default class PaymentConditions extends ContractBase {
|
|||||||
return paymentConditions
|
return paymentConditions
|
||||||
}
|
}
|
||||||
|
|
||||||
public async lockPayment(serviceAgreementId: any, assetId: any, price: number, publisherAddress: string)
|
public async lockPayment(serviceAgreementId: string, assetId: string, price: number, consumerAddress: string)
|
||||||
: Promise<Receipt> {
|
: Promise<Receipt> {
|
||||||
return this.send("lockPayment", publisherAddress, [
|
return this.send("lockPayment", consumerAddress, [
|
||||||
serviceAgreementId, "0x" + assetId, price,
|
serviceAgreementId, "0x" + assetId, price,
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user