@@ -192,7 +192,7 @@ export default class Plugin {
192
192
transactions
193
193
) ;
194
194
195
- const approveTx = await sendTransaction (
195
+ const approveTx = await snapshot . utils . sendTransaction (
196
196
web3 ,
197
197
moduleDetails . collateral ,
198
198
ERC20_ABI ,
@@ -243,7 +243,7 @@ export default class Plugin {
243
243
proposalId : string ,
244
244
txHashes : string [ ]
245
245
) {
246
- const tx = await sendTransaction (
246
+ const tx = await snapshot . utils . sendTransaction (
247
247
web3 ,
248
248
moduleAddress ,
249
249
REALITY_MODULE_ABI ,
@@ -262,7 +262,7 @@ export default class Plugin {
262
262
transactions : any
263
263
) {
264
264
const explanationBytes = toUtf8Bytes ( explanation ) ;
265
- const tx = await sendTransaction (
265
+ const tx = await snapshot . utils . sendTransaction (
266
266
web3 ,
267
267
moduleAddress ,
268
268
UMA_MODULE_ABI ,
@@ -389,14 +389,14 @@ export default class Plugin {
389
389
questionId : string ,
390
390
claimParams : [ string [ ] , string [ ] , number [ ] , string [ ] ]
391
391
) {
392
- const currentHistoryHash = await call ( web3 , ORACLE_ABI , [
392
+ const currentHistoryHash = await snapshot . utils . call ( web3 , ORACLE_ABI , [
393
393
oracleAddress ,
394
394
'getHistoryHash' ,
395
395
[ questionId ]
396
396
] ) ;
397
397
398
398
if ( BigNumber . from ( currentHistoryHash ) . eq ( 0 ) ) {
399
- const withdrawTx = await sendTransaction (
399
+ const withdrawTx = await snapshot . utils . sendTransaction (
400
400
web3 ,
401
401
oracleAddress ,
402
402
ORACLE_ABI ,
@@ -409,7 +409,7 @@ export default class Plugin {
409
409
return ;
410
410
}
411
411
412
- const tx = await sendTransaction (
412
+ const tx = await snapshot . utils . sendTransaction (
413
413
web3 ,
414
414
oracleAddress ,
415
415
ORACLE_ABI ,
@@ -432,7 +432,7 @@ export default class Plugin {
432
432
moduleTx : SafeTransaction ,
433
433
transactionIndex : number
434
434
) {
435
- const tx = await sendTransaction (
435
+ const tx = await snapshot . utils . sendTransaction (
436
436
web3 ,
437
437
moduleAddress ,
438
438
REALITY_MODULE_ABI ,
@@ -457,7 +457,7 @@ export default class Plugin {
457
457
moduleAddress : string ,
458
458
transactions : any
459
459
) {
460
- const tx = await sendTransaction (
460
+ const tx = await snapshot . utils . sendTransaction (
461
461
web3 ,
462
462
moduleAddress ,
463
463
UMA_MODULE_ABI ,
@@ -477,7 +477,7 @@ export default class Plugin {
477
477
minimumBondInDaoModule : string ,
478
478
answer : '1' | '0'
479
479
) {
480
- const currentBond = await call ( web3 , ORACLE_ABI , [
480
+ const currentBond = await snapshot . utils . call ( web3 , ORACLE_ABI , [
481
481
oracleAddress ,
482
482
'getBond' ,
483
483
[ questionId ]
@@ -504,7 +504,11 @@ export default class Plugin {
504
504
// a RealitioERC20, otherwise the catch will handle the currency as ETH
505
505
try {
506
506
const account = ( await web3 . listAccounts ( ) ) [ 0 ] ;
507
- const token = await snapshot . utils . call ( web3 , ORACLE_ABI , [ oracleAddress , 'token' , [ ] ] ) ;
507
+ const token = await snapshot . utils . call ( web3 , ORACLE_ABI , [
508
+ oracleAddress ,
509
+ 'token' ,
510
+ [ ]
511
+ ] ) ;
508
512
const [ [ tokenDecimals ] , [ allowance ] ] = await snapshot . utils . multicall (
509
513
network ,
510
514
web3 ,
0 commit comments