Skip to content

Commit

Permalink
fix: granting role til contracts resolve issue
Browse files Browse the repository at this point in the history
  • Loading branch information
aaitor committed Oct 30, 2023
1 parent 1e4c8fb commit 6fd0d44
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions integration/external/Services_NFT1155.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ describe('Gate-keeping of Web Services using NFT ERC-1155 End-to-End', () => {
console.log(` AUTHORIZATION_PASSWORD=${AUTHORIZATION_PASSWORD}`)
}
console.log(` REQUEST_DATA=${process.env.REQUEST_DATA}`)
console.log(` NODE_ADDRESS=${neverminedNodeAddress}`)
console.log(` PUBLISHER_ADDRESS=${publisher.getId()}`)
console.log(` SUBSCRIBER_ADDRESS=${subscriber.getId()}`)
})

describe('As Subscriber I want to get access to a web service I am not subscribed', () => {
Expand Down Expand Up @@ -202,6 +205,7 @@ describe('Gate-keeping of Web Services using NFT ERC-1155 End-to-End', () => {
await nevermined.contracts.loadNft1155(subscriptionNFT.address)

await subscriptionNFT.grantOperatorRole(transferNftCondition.address, publisher)
await subscriptionNFT.grantOperatorRole(neverminedNodeAddress, publisher)

const isOperator = await subscriptionNFT.getContract.isOperator(transferNftCondition.address)
assert.isTrue(isOperator)
Expand Down

0 comments on commit 6fd0d44

Please sign in to comment.