Skip to content

Commit bd7b53f

Browse files
Exclude SCV_EXECUTABLE_TAG from the spec check (#315)
1 parent 89555ff commit bd7b53f

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.scripts/check-scspectype-superset.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,17 @@
44

55
import { readFileSync } from "node:fs";
66

7-
// SCValType variants that cannot cross a contract function boundary, and so
8-
// intentionally have no SCSpecType counterpart.
7+
// SCValType variants that intentionally have no SCSpecType counterpart.
98
const EXCLUDED = [
9+
// Internal values that cannot cross a contract function boundary.
1010
"CONTRACT_INSTANCE",
1111
"LEDGER_KEY_CONTRACT_INSTANCE",
1212
"LEDGER_KEY_NONCE",
13+
// Technically can be passed across a contract function boundary, but the SDK
14+
// does not support it and does not plan to. For a better and more consistent
15+
// UX the SDK exposes the executable tag everywhere as a String, and uses
16+
// SCV_EXECUTABLE_TAG as a storage implementation detail.
17+
"EXECUTABLE_TAG",
1318
];
1419

1520
const spec = readFileSync("Stellar-contract-spec.x", "utf8");

0 commit comments

Comments
 (0)