ACCESSING DATA STRUCTURES BETWEEN TWO OR THREE DIFFERENT REACH PROGRAMS #1199
kcelestinomaria
started this conversation in
Ideas
Replies: 2 comments 5 replies
-
The only thing that can change A's Map is A. So you need to have B call a function of A that changes it. This is just like normal programming where you define interfaces that do work for clients. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello @jeapostrophe , does this work for functions defined in |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Reach Fam,
Say I have two smart contracts(Main Reach Programs),
Reach Program A
hasParticipant.Alice
whopublishes()
someinfo
, thisinfo
is added as an entry in a new Map,MapInfo
. I then haveReach Program B
which hasParticipant.John
, who needs to add a new entry and change some info in Alice's published info. The question is, how canReach Program B
access MapInfo from Reach Program A, and change specific entries in MapInfo by adding new info provided byParticipant.Bob
?In short, is there a simple way for a Reach Program to access another Reach Program's internal data structures without much restriction and still following Reach's rules? Also, the examples on the Reach Official Documentation only show how to call functions in remote programs, but we are simply trying to change entries in a Map between two different Reach Programs in this thought problem. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions