Skip to content

Commit

Permalink
Merge branch '24-fix-type-assertion' into 'dev'
Browse files Browse the repository at this point in the history
fix type assertion

Closes #24

See merge request ergo/rosen-bridge/rosen-chains!43
  • Loading branch information
vorujack committed Aug 29, 2023
2 parents e2937d3 + bbeea86 commit c5bc216
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/networks/ergo-explorer/lib/ErgoExplorerNetwork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,14 +244,7 @@ class ErgoExplorerNetwork extends AbstractErgoNetwork {
*/
public submitTransaction = async (tx: ergoLib.Transaction) => {
try {
/**
* FIXME: The following type assertion is required because the parameter
* type of `postApiV0TransactionsSend` is wrong. It needs to be removed
* when the parameter type is fixed.
*
* https://git.ergopool.io/ergo/rosen-bridge/rosen-chains/-/issues/24
*/
await this.client.v0.postApiV0TransactionsSend(tx as any);
await this.client.v0.postApiV0TransactionsSend(tx);
return;
} catch (error: any) {
return handleApiError(
Expand Down

0 comments on commit c5bc216

Please sign in to comment.