libplanet icon indicating copy to clipboard operation
libplanet copied to clipboard

Add analogous models to `DataModel` for `IAccountStateDelta.GetState()` and `IAccountStateDelta.SetState()`

Open greymistcube opened this issue 3 years ago • 1 comments
trafficstars

Something like

StateModel state = states.GetState<StateModel>(address);

// Do stuff.

states.SetState(address, state.Encode());

might be nice to have. 🙄

This is more complicated than DataModel as Bencodex parameter type for GetState() and SetState() isn't limited to Bencodex.Types.Dictionary. This might require more thought during the design stage. 😶

greymistcube avatar May 09 '22 23:05 greymistcube

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

stale[bot] avatar Jul 31 '22 01:07 stale[bot]