Skip to content

Commit

Permalink
Feature/dispenser (#790)
Browse files Browse the repository at this point in the history
* add dispenser support

* bump contracts to 0.6.2
  • Loading branch information
alexcos20 authored May 10, 2021
1 parent f7a91c7 commit 92b4be0
Show file tree
Hide file tree
Showing 9 changed files with 696 additions and 7 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
},
"dependencies": {
"@ethereum-navigator/navigator": "^0.5.2",
"@oceanprotocol/contracts": "0.5.16",
"@oceanprotocol/contracts": "^0.6.2",
"@types/crypto-js": "^4.0.1",
"cross-fetch": "^3.1.2",
"crypto-js": "^4.0.0",
Expand Down
8 changes: 6 additions & 2 deletions src/datatokens/Datatokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ export class DataTokens {
dataTokenAddress: string,
newMinterAddress: string,
address: string
): Promise<string> {
): Promise<TransactionReceipt> {
const datatoken = new this.web3.eth.Contract(this.datatokensABI, dataTokenAddress, {
from: address
})
Expand All @@ -542,6 +542,7 @@ export class DataTokens {
})
return trxReceipt
} catch (e) {
this.logger.error('ERROR: Propose minter failed')
return null
}
}
Expand All @@ -552,7 +553,10 @@ export class DataTokens {
* @param {String} address - only proposad minter can call this
* @return {Promise<string>} transactionId
*/
public async approveMinter(dataTokenAddress: string, address: string): Promise<string> {
public async approveMinter(
dataTokenAddress: string,
address: string
): Promise<TransactionReceipt> {
const datatoken = new this.web3.eth.Contract(this.datatokensABI, dataTokenAddress, {
from: address
})
Expand Down
Loading

0 comments on commit 92b4be0

Please sign in to comment.