Commit a549b40 1 parent d9effdd commit a549b40 Copy full SHA for a549b40
File tree 5 files changed +134
-16
lines changed
5 files changed +134
-16
lines changed Original file line number Diff line number Diff line change @@ -56,10 +56,6 @@ export class Lucid {
56
56
}
57
57
if ( provider ) {
58
58
lucid . provider = provider ;
59
- }
60
- if ( provider && ! protocolParameters ) {
61
- const protocolParams = await provider . getProtocolParameters ( ) ;
62
- lucid . protocolParameters = protocolParams ;
63
59
if ( lucid . provider instanceof Emulator ) {
64
60
lucid . network = "Custom" ;
65
61
SLOT_CONFIG_NETWORK [ lucid . network ] = {
@@ -69,6 +65,10 @@ export class Lucid {
69
65
} ;
70
66
}
71
67
}
68
+ if ( provider && ! protocolParameters ) {
69
+ const protocolParams = await provider . getProtocolParameters ( ) ;
70
+ lucid . protocolParameters = protocolParams ;
71
+ }
72
72
if ( lucid . protocolParameters ) {
73
73
const slotConfig = SLOT_CONFIG_NETWORK [ lucid . network ] ;
74
74
lucid . txBuilderConfig = C . TransactionBuilderConfigBuilder . new ( )
Original file line number Diff line number Diff line change @@ -68,11 +68,6 @@ export class Lucid {
68
68
}
69
69
if ( provider ) {
70
70
lucid . provider = provider ;
71
- }
72
- if ( provider && ! protocolParameters ) {
73
- const protocolParams = await provider . getProtocolParameters ( ) ;
74
- lucid . protocolParameters = protocolParams ;
75
-
76
71
if ( lucid . provider instanceof Emulator ) {
77
72
lucid . network = "Custom" ;
78
73
SLOT_CONFIG_NETWORK [ lucid . network ] = {
@@ -82,6 +77,10 @@ export class Lucid {
82
77
} ;
83
78
}
84
79
}
80
+ if ( provider && ! protocolParameters ) {
81
+ const protocolParams = await provider . getProtocolParameters ( ) ;
82
+ lucid . protocolParameters = protocolParams ;
83
+ }
85
84
if ( lucid . protocolParameters ) {
86
85
const slotConfig = SLOT_CONFIG_NETWORK [ lucid . network ] ;
87
86
lucid . txBuilderConfig = C . TransactionBuilderConfigBuilder . new ( )
You can’t perform that action at this time.
0 commit comments