Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: views: prefer base64_format to manual base64 conversions #7308

Merged
merged 3 commits into from
Aug 1, 2022

Conversation

mina86
Copy link
Contributor

@mina86 mina86 commented Aug 1, 2022

Rather than declaring a field String and having all the users do
base64 conversion manually, declare it Vec with base64_format
serialisation scheme. This way, only the serialisation code needs to
worry how the data looks on the wire. This also means that users
reading the data don’t need to worry about decoding errors.

Fixes: #7232

Rather than declaring a field String and having all the users do
base64 conversion manually, declare it Vec<u8> with base64_format
serialisation scheme.  This way, only the serialisation code needs to
worry how the data looks on the wire.  This also means that users
reading the data don’t need to worry about decoding errors.

Fixes: near#7232
@mina86 mina86 requested a review from a team as a code owner August 1, 2022 15:04
@mina86 mina86 requested a review from nagisa August 1, 2022 15:04
@near-bulldozer near-bulldozer bot merged commit 8e9be9f into near:master Aug 1, 2022
@mina86 mina86 deleted the a branch August 2, 2022 00:29
frol added a commit that referenced this pull request Sep 23, 2022
It has been a while since the last time we cut the crates releases. Let's do that with 1.29.0 release of nearcore.

Tagged: https://github.com/near/nearcore/releases/tag/crates-0.15.0

Notable changes:

  - #6924
  - #6941
  - (BREAKING CHANGE) #7308

Check here for a full changelog: crates-0.14.0...crates-0.15.0
nikurt pushed a commit that referenced this pull request Sep 26, 2022
It has been a while since the last time we cut the crates releases. Let's do that with 1.29.0 release of nearcore.

Tagged: https://github.com/near/nearcore/releases/tag/crates-0.15.0

Notable changes:

  - #6924
  - #6941
  - (BREAKING CHANGE) #7308

Check here for a full changelog: crates-0.14.0...crates-0.15.0
nikurt pushed a commit that referenced this pull request Nov 9, 2022
It has been a while since the last time we cut the crates releases. Let's do that with 1.29.0 release of nearcore.

Tagged: https://github.com/near/nearcore/releases/tag/crates-0.15.0

Notable changes:

  - #6924
  - #6941
  - (BREAKING CHANGE) #7308

Check here for a full changelog: crates-0.14.0...crates-0.15.0
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.

Get rid of needless base64 encoding in views types
2 participants