Skip to content

Commit

Permalink
removed async
Browse files Browse the repository at this point in the history
  • Loading branch information
notTanveer committed Oct 11, 2024
1 parent 209087e commit 260f2f0
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions e2e/helpers/rpc.helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class BitcoinRPCUtil {
}
}

async getBlockHeight(): Promise<number> {
getBlockHeight(): Promise<number> {
return this.request({
data: {
jsonrpc: '1.0',
Expand All @@ -59,7 +59,7 @@ export class BitcoinRPCUtil {
});
}

async createWallet(walletName: string): Promise<any> {
createWallet(walletName: string): Promise<any> {
return this.request({
data: {
method: 'createwallet',
Expand All @@ -70,7 +70,7 @@ export class BitcoinRPCUtil {
});
}

async loadWallet(walletName: string): Promise<any> {
loadWallet(walletName: string): Promise<any> {
return this.request({
data: {
method: 'loadwallet',
Expand All @@ -81,7 +81,7 @@ export class BitcoinRPCUtil {
});
}

async getNewAddress(): Promise<string> {
getNewAddress(): Promise<string> {
return this.request({
data: {
method: 'getnewaddress',
Expand All @@ -92,7 +92,7 @@ export class BitcoinRPCUtil {
});
}

async mineToAddress(numBlocks: number, address: string): Promise<any> {
mineToAddress(numBlocks: number, address: string): Promise<any> {
return this.request({
data: {
method: 'generatetoaddress',
Expand All @@ -101,7 +101,7 @@ export class BitcoinRPCUtil {
});
}

async sendToAddress(address: string, amount: number): Promise<string> {
sendToAddress(address: string, amount: number): Promise<string> {
return this.request({
data: {
method: 'sendtoaddress',
Expand All @@ -110,7 +110,7 @@ export class BitcoinRPCUtil {
});
}

async sendRawTransaction(rawTx: string): Promise<any> {
sendRawTransaction(rawTx: string): Promise<any> {
return this.request({
data: {
method: 'sendrawtransaction',
Expand All @@ -119,7 +119,7 @@ export class BitcoinRPCUtil {
});
}

async getTxOut(txid: string, vout: number): Promise<PartialUtxo> {
getTxOut(txid: string, vout: number): Promise<PartialUtxo> {
return this.request({
data: {
method: 'gettxout',
Expand All @@ -128,7 +128,7 @@ export class BitcoinRPCUtil {
});
}

async getRawTransaction(txid: string): Promise<any> {
getRawTransaction(txid: string): Promise<any> {
return this.request({
data: {
method: 'getrawtransaction',
Expand Down

0 comments on commit 260f2f0

Please sign in to comment.