Skip to content

Commit

Permalink
in main user funcs, if datum and redeemer args are ignored and have t…
Browse files Browse the repository at this point in the history
…he same the datum arg name is changed to "$datum"
  • Loading branch information
christianschmitz committed Sep 12, 2024
1 parent a813c04 commit af22040
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@helios-lang/compiler",
"version": "0.17.0-76",
"version": "0.17.0-77",
"description": "Helios is a Domain Specific Language that compiles to Plutus-Core (i.e. Cardano on-chain validator scripts). Helios is a non-Haskell alternative to Plutus. With this library you can compile Helios scripts and build Cardano transactions, all you need to build 100% client-side dApps for Cardano.",
"main": "src/index.js",
"types": "types/index.d.ts",
Expand Down
7 changes: 6 additions & 1 deletion src/program/multi.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,12 @@ function analyzeMainFunction(purpose, args) {
*/
const res = [
{
name: dArg.name.value,
name:
dArg.isIgnored() &&
rArg.isIgnored() &&
dArg.name.value == rArg.name.value
? "$datum"
: dArg.name.value,
isOptional: false,
isIgnored: dArg.isIgnored(),
type: dArg.isIgnored()
Expand Down
2 changes: 1 addition & 1 deletion src/program/version.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = "0.17.0-76"
export const VERSION = "0.17.0-77"

0 comments on commit af22040

Please sign in to comment.