Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
questions regarding the testing during development of contracts and DApps
6
votes
2
answers
4k
views
Return a mapping in Truffle test
Or I have to create my own getter function in the contract (for testing purposes) and then call that function from the test? …
0
votes
1
answer
832
views
How put address (from ganache-cli client) as a parameters in constructor
Always, when I try to send parameters for the constructor function I use a migration file and where I´m trying to deploy the contract, add the parameters...Something like that:
var OVXET = artifacts. …
3
votes
2
answers
2k
views
instance.balanceOf(...).call is not a function
I have ERC20 standard token functions in my code...I´m trying to test the function balanceOf(address _owner) with a javascript test on truffle but I have the following problem:
TypeError: ovxet.bal …
1
vote
2
answers
1k
views
How to represent the complete big number (all e)
When I convert a variable using the functions toNumber() or toString() I obtain this result: x.toNumber()
1e+27
But I want to see the entire number with all the figures. Because If I don´t convert …
3
votes
4
answers
4k
views
Return a struct from a mapping in test truffle
I want the information stored in each struct inside the mapping.
This is my struct:
struct BurnApply {
address applicant;
uint amount;
string btcAddress;
uint8 flag;
uint passw …