mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
service fixes
This commit is contained in:
parent
1aa2ff7c76
commit
01b268efaa
@ -30,17 +30,16 @@ export default class Details extends Component<DetailsProps, DetailsState> {
|
|||||||
try {
|
try {
|
||||||
const account = await this.context.ocean.getAccounts()
|
const account = await this.context.ocean.getAccounts()
|
||||||
const service = ddo.findServiceByType('Access')
|
const service = ddo.findServiceByType('Access')
|
||||||
const serviceAgreementSignatureResult: any = await this.context.ocean.signServiceAgreement(
|
const serviceAgreementSignatureResult = await this.context.ocean.signServiceAgreement(
|
||||||
ddo.id,
|
ddo.id,
|
||||||
service.serviceDefinitionId,
|
service.serviceDefinitionId,
|
||||||
account[0]
|
account[0]
|
||||||
)
|
)
|
||||||
Logger.log(service)
|
|
||||||
await this.context.ocean.initializeServiceAgreement(
|
await this.context.ocean.initializeServiceAgreement(
|
||||||
ddo.id,
|
ddo.id,
|
||||||
service.serviceDefinitionId,
|
service.serviceDefinitionId,
|
||||||
serviceAgreementSignatureResult.serviceAgreementId,
|
serviceAgreementSignatureResult.agreementId,
|
||||||
serviceAgreementSignatureResult.serviceAgreementSignature,
|
serviceAgreementSignatureResult.signature,
|
||||||
(files: any) => {
|
(files: any) => {
|
||||||
Logger.log('downloading files', files)
|
Logger.log('downloading files', files)
|
||||||
files.forEach((file: any) => {
|
files.forEach((file: any) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user