Skip to content

feat: support empty maps#319

Open
mduthey wants to merge 1 commit intomainfrom
feat/support-empty-map
Open

feat: support empty maps#319
mduthey wants to merge 1 commit intomainfrom
feat/support-empty-map

Conversation

@mduthey
Copy link
Copy Markdown
Contributor

@mduthey mduthey commented Apr 22, 2026

Allow empty maps like in this case:

output position_output {
    to: StakingScript,
    amount: min_utxo(position_output) + tokens + staking_position_nft,
    datum: StakingDatum::StakingPosition {
        sp_content: StakingPositionContent {
            st_owner: owner_pkh,
            st_locked_amount: {}, // Empty map
            st_position_snapshot: current_snapshot,
        },
    },
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant