aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorRJ <catalanor0220@gmail.com>2016-03-30 23:43:39 +0800
committerRJ <catalanor0220@gmail.com>2016-03-30 23:43:39 +0800
commit0df5f40ac41220aae8a9d082ebd45fb17b8b821b (patch)
treecc5b54e22b372115f7fa60d3f1b3a4567314c869 /docs
parentc2cf8069968b617ff75d4bc5cf7f72990f71da54 (diff)
downloaddexon-solidity-0df5f40ac41220aae8a9d082ebd45fb17b8b821b.tar.gz
dexon-solidity-0df5f40ac41220aae8a9d082ebd45fb17b8b821b.tar.zst
dexon-solidity-0df5f40ac41220aae8a9d082ebd45fb17b8b821b.zip
Update frequently-asked-questions.rst
Diffstat (limited to 'docs')
-rw-r--r--docs/frequently-asked-questions.rst16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/frequently-asked-questions.rst b/docs/frequently-asked-questions.rst
index 6ac5a9e9..b1ca04ff 100644
--- a/docs/frequently-asked-questions.rst
+++ b/docs/frequently-asked-questions.rst
@@ -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?
==================================================================