@@ -238,7 +238,7 @@ module.exports.transferArtistTokens = (web3, {from, beneficiary, contractAddr, a
238
238
} ) ;
239
239
} ;
240
240
241
- module . exports . hatchArtistToken = async ( web3 , { from, contractAddr, artistTokenAddr, wphtAddr, amountInPht} ) => {
241
+ module . exports . hatchArtistToken = async ( web3 , { from, contractAddr, artistTokenAddr, wphtAddr, amountInPht, useGSN } ) => {
242
242
243
243
Web3Wrapper . validator . validateAddress ( "from" , from ) ;
244
244
Web3Wrapper . validator . validateAddress ( "wphtAddr" , wphtAddr ) ;
@@ -250,6 +250,7 @@ module.exports.hatchArtistToken = async (web3, {from, contractAddr, artistTokenA
250
250
to : contractAddr ,
251
251
abi : profileScJSON . abi ,
252
252
method : 'hatchArtistToken' ,
253
+ useGSN,
253
254
params : [ artistTokenAddr , wphtAddr , Web3Wrapper . utils . toWei ( amountInPht ) , true ]
254
255
} ) ;
255
256
@@ -262,7 +263,7 @@ module.exports.hatchArtistToken = async (web3, {from, contractAddr, artistTokenA
262
263
return Web3Wrapper . utils . toBN ( tokens ) ;
263
264
} ;
264
265
265
- module . exports . claimArtistToken = async ( web3 , { from, contractAddr, artistTokenAddr} ) => {
266
+ module . exports . claimArtistToken = async ( web3 , { from, contractAddr, artistTokenAddr, useGSN } ) => {
266
267
267
268
Web3Wrapper . validator . validateAddress ( "from" , from ) ;
268
269
Web3Wrapper . validator . validateAddress ( "contractAddr" , contractAddr ) ;
@@ -273,6 +274,7 @@ module.exports.claimArtistToken = async (web3, {from, contractAddr, artistTokenA
273
274
to : contractAddr ,
274
275
abi : profileScJSON . abi ,
275
276
method : 'claimArtistToken' ,
277
+ useGSN,
276
278
params : [ artistTokenAddr ]
277
279
} ) ;
278
280
@@ -285,7 +287,7 @@ module.exports.claimArtistToken = async (web3, {from, contractAddr, artistTokenA
285
287
return Web3Wrapper . utils . toBN ( tokens ) ;
286
288
} ;
287
289
288
- module . exports . refundArtistToken = async ( web3 , { from, contractAddr, artistTokenAddr, wphtAddr} ) => {
290
+ module . exports . refundArtistToken = async ( web3 , { from, contractAddr, artistTokenAddr, wphtAddr, useGSN } ) => {
289
291
290
292
Web3Wrapper . validator . validateAddress ( "from" , from ) ;
291
293
Web3Wrapper . validator . validateAddress ( "contractAddr" , contractAddr ) ;
@@ -297,6 +299,7 @@ module.exports.refundArtistToken = async (web3, {from, contractAddr, artistToken
297
299
to : contractAddr ,
298
300
abi : profileScJSON . abi ,
299
301
method : 'refundArtistToken' ,
302
+ useGSN,
300
303
params : [ artistTokenAddr , wphtAddr ]
301
304
} ) ;
302
305
0 commit comments