Questions tagged [unbox]
10 questions
2
votes
1 answer
How to fix gyp ERR! build error using npm?
I've been using cmd truffle unbox react to create react files in my dapp. However, every time I command it, it pops up gyp ERR! build error. I don't know how to fix it. Please help!
I've tried this, still not…

Jessie
- 1,155
- 3
- 16
- 27
1
vote
1 answer
How to pass a string to a setter function in solidity?
I am trying to execute a simple function in solidity where I pass a value to a set() function and it stores it in a predeclared variable in the Smart Contract.
The initial code presented by truffle unbox react works fine.
You pass it an int and it…

tomoshimi
- 25
- 5
1
vote
1 answer
How to parse the Array of dictionaries using swift Unbox
I am using unboxing (https://github.com/JohnSundell/Unbox.git) for Object mapping in my Project I have a problem with this, I am unable to parse the data when it is comes as a Array from service. For example if the data is in the below form
[
{
…

praveen kumar somu
- 29
- 1
- 4
0
votes
0 answers
Unable to install truffle unboxmetacoin in VScode editor
Starting unbox...
=================
✓ Preparing to download box
✖ Downloading
Unbox failed!
Error: connect ECONNREFUSED 127.0.0.1:80
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1247:16)
Truffle v5.6.9 (core: 5.6.9)
Node…
0
votes
0 answers
R Apply a jsonlite::unbox command to a list
I want to communicate with an API that needs a certain format, see below:
library(jsonlite)
list(limits = list("Overall_Wave3/0" = unbox("14000"),
"Overall_Wave3/1" = unbox("14005")))
which gives (note the indexes of that list…

deschen
- 10,012
- 3
- 27
- 50
0
votes
1 answer
Truffle Unbox Error while using truffle unbox react
I am using truffle unbox react, but it is failing to set up:
Preparing to download
√ Preparing to download
- Downloading
√ Downloading
- Cleaning up temporary files
√ Cleaning up temporary files
- Setting up box
× Setting up box
…
0
votes
0 answers
Unbox Parsing Generic Type
I tried to find out but couldn't fine any solution. So, asking you guys.
Is there any chance to write a func which is return as generic type?
I have a structure as below
struct WWSInterest: Unboxable {
var confirmation: Bool
var data:…

Utku
- 145
- 1
- 13
0
votes
1 answer
How to save variable in closure to external variable?
I'm trying to create a custom PickerView that gets it's data from an API call to a web-server. The problem I'm having is saving the parsed data into an external variable so that the PickerView protocol methods can access it.
// API Call / Parsing…

manohjay
- 110
- 1
- 9
0
votes
1 answer
Unbox + Realm native "List" object
Update
Finally author of the Unbox library answer my question.
https://github.com/JohnSundell/Unbox/issues/156
I'm trying to use Unbox to make Realm object with other related objects inside using List. The JSON response from server has this…

mhergon
- 1,688
- 1
- 18
- 39
-1
votes
1 answer
iOS : Unbox JSON with array of dictionary array
I want to parse a JSON file using Unbox library. The JSON is an array of dictionary array. How can we do that? I tried using keypath and all but unable to parse it. I need array of section.
I tried with single hierarchy and able to parse it.
Library…

miOS
- 1,379
- 13
- 20