Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Allow multi_index primary key to be a name #1265

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

nathanielhourt
Copy link

Change Description

Using a name as a primary key in a table is such a common use case that even the core contracts do it extensively. Adding first class support for this use case to the multi_index template is trivial, and allows contract code to be more expressive.

API Changes

  • API Changes

The multi_index API now supports usage of a name as a table primary key, and implicitly casts it down to an int for indexing.

Documentation Additions

  • Documentation Additions

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant