Skip to content

Conversation

agaffney
Copy link
Contributor

This is in preparation for further refactoring. Additionally, it:

  • adds compatability types/functions to keep existing code working
  • adds NewMultiAsset function to create MultiAsset from existing data
  • switches to public interface for iterating over MultiAsset in various places

This is in preparation for further refactoring. Additionally, it:

* adds compatability types/functions to keep existing code working
* adds NewMultiAsset function to create MultiAsset from existing data
* switches to public interface for iterating over MultiAsset in various
  places
}

// NewMultiAsset creates a MultiAsset with the specified data
func NewMultiAsset[T MultiAssetTypeOutput | MultiAssetTypeMint](data map[Blake2b224]map[cbor.ByteString]T) MultiAsset[T] {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

@agaffney agaffney merged commit 3cb9204 into main Aug 24, 2024
8 checks passed
@agaffney agaffney deleted the chore/ledger-refactor-common branch August 24, 2024 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants