fix(deseralizeTx): Updating URL for web service

This commit is contained in:
Chris Troutner
2026-05-15 10:08:28 -07:00
parent 0811024030
commit 9f3d1f866e
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ export default {
? ( ? (
process.env.APISERVER process.env.APISERVER
? process.env.APISERVER ? process.env.APISERVER
: 'https://api.fullstack.cash/v5/' : 'https://bch.fullstack.cash/v6/'
) )
: 'https://free-bch.fullstack.cash/', : 'https://free-bch.fullstack.cash/',
+2 -1
View File
@@ -468,8 +468,9 @@ class WalletAdapter {
} }
// Ensure the URL points at FullStack.cash, since the web 3 infra does not // Ensure the URL points at FullStack.cash, since the web 3 infra does not
// yet support this call. // yet support this call.
// TODO: Remove this once the web 3 infra supports this call.
const oldUrl = this.bchWallet.bchjs.RawTransactions.restURL const oldUrl = this.bchWallet.bchjs.RawTransactions.restURL
this.bchWallet.bchjs.RawTransactions.restURL = 'https://api.fullstack.cash/v5/' this.bchWallet.bchjs.RawTransactions.restURL = 'https://bch.fullstack.cash/v6/'
// Use a full node to deserialize the transaction. // Use a full node to deserialize the transaction.
const txObj2 = await this.bchWallet.bchjs.RawTransactions.decodeRawTransaction(txHex) const txObj2 = await this.bchWallet.bchjs.RawTransactions.decodeRawTransaction(txHex)