Skip to content

Commit

Permalink
Update frequently-asked-questions.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
VoR0220 committed Mar 30, 2016
1 parent c2cf806 commit 0df5f40
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/frequently-asked-questions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,22 @@ gas and return your 20 Wei).
In the above example, the low-level function `call` is used to invoke another
contract with `p.data` as payload and `p.amount` Wei is sent with that call.

What happens to a mapping copied from a mapping of structs?
===========================================================

This is a very interesting question. Suppose that we have a contract field set up like such::

struct user{
mapping(string => address) usedContracts;
}
mapping(uint => user) userList;
function somefunction{
user userA = userList[1];
userList[2] = userA;
}

In this case, the mapping of the struct being copied over into the userList is ignored.

How do I initialize a contract with only a specific amount of wei?
==================================================================

Expand Down

0 comments on commit 0df5f40

Please sign in to comment.