@harmoniclabs/pebble 0.1.9 → 0.1.10

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.
@@ -774,8 +774,7 @@ function _deriveContractDatumTypeDef(contractName, stateDecls, contractRange) {
774
774
  let defFlags = StructDeclAstFlags.onlyDataEncoding;
775
775
  if (stateDecls.length <= 1)
776
776
  defFlags |= StructDeclAstFlags.untaggedSingleConstructor;
777
- const uniqueName = getUniqueInternalName(`${contractName}Datum`);
778
- return new StructDecl(new Identifier(uniqueName, SourceRange.mock), [], // typeParams
777
+ return new StructDecl(new Identifier(contractName, contractRange), [], // typeParams
779
778
  stateDecls.map(s => new StructConstrDecl(new Identifier(s.name.text, s.name.range), s.fields, s.range)), defFlags, contractRange);
780
779
  }
781
780
  function _buildSpendCaseBlock(compiler, contractDecl, paramsInternalNamesMap, baseContextVars, contractRange) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harmoniclabs/pebble",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "A simple, yet rock solid, functional language with an imperative bias, targeting UPLC",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -14,6 +14,7 @@
14
14
  "dist"
15
15
  ],
16
16
  "scripts": {
17
+ "prepublishOnly": "npm run ci",
17
18
  "buidl": "npm run build",
18
19
  "build": "rm -rf ./dist && npm run build:light",
19
20
  "build:light": "npm run genDiagnosticMessages && tsc --project ./tsconfig.json && tsc-alias -p ./tsconfig.json",