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

Reimplement asset::to_string() and related functions - develop #661

Merged
merged 2 commits into from
Sep 16, 2019

Conversation

arhag
Copy link
Contributor

@arhag arhag commented Sep 7, 2019

Change Description

Changes in this PR:

  • Added asset::write_as_string member function which allows for efficiently writing out the asset into a character buffer. (asset::to_string and asset::print have been reimplemented to now use this new asset::write_as_string function.)
  • Modified all write_as_string member functions (in name, symbol_code, and asset) to take an optional dry_run parameter and to be less strict with their preconditions.
  • Added additional test cases to asset_tests.

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

…set::write_as_string function; update name::write_as_string and symbol_code::write_as_string to be more flexible; augment asset_tests
@arhag arhag merged commit 0e25f58 into develop Sep 16, 2019
@arhag arhag deleted the asset-print-develop branch September 16, 2019 13:41
rise-worlds pushed a commit to potato-coin/eosio.cdt that referenced this pull request Jul 14, 2020
Reimplement asset::to_string() and related functions - develop
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.

2 participants