@alephium/web3 0.5.4 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/signer/tx-builder.ts +2 -1
package/package.json
CHANGED
package/src/signer/tx-builder.ts
CHANGED
|
@@ -39,7 +39,8 @@ export abstract class TransactionBuilder {
|
|
|
39
39
|
static from(nodeProvider: NodeProvider): TransactionBuilder
|
|
40
40
|
static from(baseUrl: string, apiKey?: string, customFetch?: typeof fetch): TransactionBuilder
|
|
41
41
|
static from(param0: string | NodeProvider, param1?: string, customFetch?: typeof fetch): TransactionBuilder {
|
|
42
|
-
const nodeProvider =
|
|
42
|
+
const nodeProvider =
|
|
43
|
+
typeof param0 === 'string' ? new NodeProvider(param0, param1, customFetch) : (param0 as NodeProvider)
|
|
43
44
|
return new (class extends TransactionBuilder {
|
|
44
45
|
get nodeProvider(): NodeProvider {
|
|
45
46
|
return nodeProvider
|