Skip to content

Commit

Permalink
fix(sdk): bypass relay fix for mainnet (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevzzsk authored Oct 4, 2023
1 parent 53c8301 commit dae2669
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/ord-connect/src/lib/CustomJsonRPCDatasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ export default class CustomJsonRpcDatasource extends JsonRpcDatasource {
}

override async relay({ hex, maxFeeRate }: RelayOptions) {
if (this.network === "mainnet") {
return super.relay({ hex, maxFeeRate });
}
if (!hex) {
throw new Error("Invalid request");
}
Expand Down

0 comments on commit dae2669

Please sign in to comment.