Skip to content

bug: Transaction Json Serialization Failure with Ubuntu/Arduino IDE #99

@sleepdefic1t

Description

@sleepdefic1t

Expected Behavior

Transaction Json objects serialize correctly on all platforms.

Current Behavior

Transaction Json objects serialize correctly on all platforms except Ubuntu 18.0.4 using the Arduino IDE as reported by Slack user Asmita.

Specifically, numbers are being serialized as string objects.

Possible Solution

A potential solution is to enforce type serialization by declaring int/uint64_t variables. Use of stoull and stoi may also be required per user Asmita.

Steps to Reproduce (for bugs)

  1. Use the Arduino IDE on Ubuntu 18.0.4.
  2. Use the C++ SDK to create a transaction object.
  3. Use the .toJson() method to view the output.

Numbers will be serialized as strings.

Context

I’m currently on vacation, but will investigate a fix as soon as I’m back.

Your Environment

  • Version used: All versions.
  • Environment name and version (e.g. node.js v10.15.3): Arduino IDE.
  • Server type and version: UNKNOWN / N/A
  • Operating System and version: Ubuntu 18.0.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions