Skip to content

Commit 91e0d7b

Browse files
Merge pull request cardano-foundation#243 from cardano-foundation/fix/debug-execution-error
Fix/debug execution error
2 parents 9ca82ea + 14a32db commit 91e0d7b

File tree

18 files changed

+4531
-458
lines changed

18 files changed

+4531
-458
lines changed

cardano/aiken-type-conversion/src/mod.ts

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,16 @@ export function generateType(
88
plutusDefinition: PlutusDefinition,
99
typeDef: AikenType,
1010
): GenType {
11-
const path = typeDef.path;
11+
const path = getType(typeDef.path);
12+
13+
let lastPath = "";
14+
if (path != null) {
15+
const path_parts = path.split("/");
16+
lastPath = path_parts[path_parts.length - 1];
17+
}
1218

1319
if (path in builtInTypes) {
14-
return builtInTypes[typeDef.path];
20+
return builtInTypes[lastPath];
1521
}
1622

1723
if ("dataType" in typeDef) {
@@ -366,6 +372,15 @@ export function generateType(
366372
};
367373
}
368374
}
369-
370375
throw new Error("Type is not recognized");
371376
}
377+
378+
function getType(path: string) {
379+
if (path != null && path.indexOf('/') != -1) {
380+
const path_parts = path.split("/");
381+
const lastPath = path_parts[path_parts.length - 1];
382+
return lastPath;
383+
} else {
384+
return path;
385+
}
386+
}

cardano/gateway/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ OGMIOS_ENDPOINT=http://127.0.0.1:1337
1212
CARDANO_CHAIN_HOST=127.0.0.1
1313
CARDANO_CHAIN_PORT=3001
1414
CARDANO_NETWORK_MAGIC=42
15-
CARDANO_EPOCH_NONCE_GENESIS="2d03df430fd00811954020568afa35acdff2832f1d502bec2f4e5a966127948c"
15+
CARDANO_EPOCH_NONCE_GENESIS="5569014c252a963bad2efaa35e0db74c9581db3d107cb817810916b1463e7550"
1616

1717
MITHRIL_ENDPOINT=http://127.0.0.1:8080/aggregator
1818
MITHRIL_GENESIS_VERIFICATION_KEY=5b33322c3235332c3138362c3230312c3137372c31312c3131372c3133352c3138372c3136372c3138312c3138382c32322c35392c3230362c3130352c3233312c3135302c3231352c33302c37382c3231322c37362c31362c3235322c3138302c37322c3133342c3133372c3234372c3136312c36385d

0 commit comments

Comments
 (0)