emeraldpay / emeraldpay/emerald-vault

`emerald_import*` & `emerald_export*` doesn't embedded JSON objects as plain string values

Open
#197 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
58
Forks
18
PR merge metrics
No merged PRs in 30d

Description

https://stackoverflow.com/questions/7750399/how-to-encode-json-embedded-within-json

Like `"abi": "[{\"constant\":false,\"inputs\":[{\"name\":\"receiver\",\"type\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"sendLoyaltyPoints\",\"outputs\":[],\"payable\":false,\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"familyMember\",\"type\":\"address\"}],\"name\":\"registerFamilyMember\",\"outputs\":[],\"payable\":false,\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"EmiratesLoyaltyPoints\",\"outputs\":[],\"payable\":false,\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"}]"`.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the emerald_import* and emerald_export* entry points and compare their handling with the embedded JSON example in the issue. Verify how a JSON object stored as a plain string is imported and exported, then confirm that the value survives the round trip without losing its escaped contents.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
blockchain
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
43/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.