@@ -161,7 +161,7 @@ export class DataUnion {
161161 * Get the tx promise for withdrawing all your earnings
162162 * @returns await on call .wait to actually send the tx
163163 */
164- private async getWithdrawAllTx ( sendToMainnet : boolean = true ) : Promise < ContractTransaction > {
164+ private async getWithdrawAllTx ( sendToMainnet = true ) : Promise < ContractTransaction > {
165165 const signer = await this . client . ethereum . getSidechainSigner ( )
166166 const address = await signer . getAddress ( )
167167 const duSidechain = await this . getContracts ( ) . getSidechainContract ( this . contractAddress )
@@ -202,7 +202,7 @@ export class DataUnion {
202202 * @param recipientAddress - the address to receive the tokens
203203 * @returns await on call .wait to actually send the tx
204204 */
205- private async getWithdrawAllToTx ( recipientAddress : EthereumAddress , sendToMainnet : boolean = true ) : Promise < ContractTransaction > {
205+ private async getWithdrawAllToTx ( recipientAddress : EthereumAddress , sendToMainnet = true ) : Promise < ContractTransaction > {
206206 const signer = await this . client . ethereum . getSidechainSigner ( )
207207 const address = await signer . getAddress ( )
208208 const duSidechain = await this . getContracts ( ) . getSidechainContract ( this . contractAddress )
@@ -363,7 +363,7 @@ export class DataUnion {
363363 /**
364364 * Add a new data union secret
365365 */
366- async createSecret ( name : string = 'Untitled Data Union Secret' ) : Promise < string > {
366+ async createSecret ( name = 'Untitled Data Union Secret' ) : Promise < string > {
367367 const url = getEndpointUrl ( this . client . options . restUrl , 'dataunions' , this . contractAddress , 'secrets' )
368368 const res = await authFetch < { secret : string } > (
369369 url ,
@@ -433,7 +433,7 @@ export class DataUnion {
433433 * @param memberAddress - the other member who gets their tokens out of the Data Union
434434 * @returns await on call .wait to actually send the tx
435435 */
436- private async getWithdrawAllToMemberTx ( memberAddress : EthereumAddress , sendToMainnet : boolean = true ) : Promise < ContractTransaction > {
436+ private async getWithdrawAllToMemberTx ( memberAddress : EthereumAddress , sendToMainnet = true ) : Promise < ContractTransaction > {
437437 const a = getAddress ( memberAddress ) // throws if bad address
438438 const duSidechain = await this . getContracts ( ) . getSidechainContract ( this . contractAddress )
439439 return duSidechain . withdrawAll ( a , sendToMainnet )
@@ -475,7 +475,7 @@ export class DataUnion {
475475 memberAddress : EthereumAddress ,
476476 recipientAddress : EthereumAddress ,
477477 signature : string ,
478- sendToMainnet : boolean = true ,
478+ sendToMainnet = true ,
479479 ) {
480480 const duSidechain = await this . getContracts ( ) . getSidechainContract ( this . contractAddress )
481481 return duSidechain . withdrawAllToSigned ( memberAddress , recipientAddress , sendToMainnet , signature )
@@ -669,7 +669,7 @@ export class DataUnion {
669669 /**
670670 * @returns null if message was already transported, ELSE the mainnet AMB signature execution transaction receipt
671671 */
672- async transportMessage ( messageHash : AmbMessageHash , pollingIntervalMs : number = 1000 , retryTimeoutMs : number = 300000 ) {
672+ async transportMessage ( messageHash : AmbMessageHash , pollingIntervalMs = 1000 , retryTimeoutMs = 300000 ) {
673673 const helper = this . getContracts ( )
674674 const [ sidechainAmb , mainnetAmb ] = await Promise . all ( [
675675 helper . getSidechainAmb ( ) ,
0 commit comments