Skip to content

Conversation

@evgenykuzyakov
Copy link
Contributor

No description provided.

@maxzaver
Copy link
Contributor

I think this is in merging process, so I'll approve it assuming the merging is done correctly.

@evgenykuzyakov
Copy link
Contributor Author

Depends on #1170

@ilblackdragon
Copy link
Member

ilblackdragon commented Aug 17, 2019

@evgenykuzyakov @nearmax

I've been thinking that if we add back Serialize, Deserialize implementation to the CryptoHash/PublicKey which are designed for readable serialzation and actually make a wrapper Balance(u128) and ByteArray(Vec) for args/code that has custom serialization - we can actually fully remove views. WDYT?

(Not in this PR of case)

let receipt = Receipt::try_from_slice(&value).unwrap();
Some(StateRecord::PostponedReceipt(receipt.into()))
}
_ => unreachable!(),
Copy link
Member

Choose a reason for hiding this comment

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

what's left? let's either remove or add explicit items here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

7..255 columns. We currently, don't use enum for this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll change it to enums in other PR

Copy link
Member

@ilblackdragon ilblackdragon left a comment

Choose a reason for hiding this comment

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

Just couple comments.

@evgenykuzyakov evgenykuzyakov merged commit 2edba26 into staging Aug 19, 2019
@evgenykuzyakov evgenykuzyakov deleted the state-serialization-for-data branch August 19, 2019 17:53
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.

4 participants