Skip to content

Commit a549b40

Browse files
committed
fix: update emulator logic branch
1 parent d9effdd commit a549b40

File tree

5 files changed

+134
-16
lines changed

5 files changed

+134
-16
lines changed

dist/esm/src/lucid/lucid.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@ export class Lucid {
5656
}
5757
if (provider) {
5858
lucid.provider = provider;
59-
}
60-
if (provider && !protocolParameters) {
61-
const protocolParams = await provider.getProtocolParameters();
62-
lucid.protocolParameters = protocolParams;
6359
if (lucid.provider instanceof Emulator) {
6460
lucid.network = "Custom";
6561
SLOT_CONFIG_NETWORK[lucid.network] = {
@@ -69,6 +65,10 @@ export class Lucid {
6965
};
7066
}
7167
}
68+
if (provider && !protocolParameters) {
69+
const protocolParams = await provider.getProtocolParameters();
70+
lucid.protocolParameters = protocolParams;
71+
}
7272
if (lucid.protocolParameters) {
7373
const slotConfig = SLOT_CONFIG_NETWORK[lucid.network];
7474
lucid.txBuilderConfig = C.TransactionBuilderConfigBuilder.new()

dist/package-lock.json

+121-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/src/lucid/lucid.ts

+4-5
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,6 @@ export class Lucid {
6868
}
6969
if (provider) {
7070
lucid.provider = provider;
71-
}
72-
if (provider && !protocolParameters) {
73-
const protocolParams = await provider.getProtocolParameters();
74-
lucid.protocolParameters = protocolParams;
75-
7671
if (lucid.provider instanceof Emulator) {
7772
lucid.network = "Custom";
7873
SLOT_CONFIG_NETWORK[lucid.network] = {
@@ -82,6 +77,10 @@ export class Lucid {
8277
};
8378
}
8479
}
80+
if (provider && !protocolParameters) {
81+
const protocolParams = await provider.getProtocolParameters();
82+
lucid.protocolParameters = protocolParams;
83+
}
8584
if (lucid.protocolParameters) {
8685
const slotConfig = SLOT_CONFIG_NETWORK[lucid.network];
8786
lucid.txBuilderConfig = C.TransactionBuilderConfigBuilder.new()

0 commit comments

Comments
 (0)