Skip to content

Commit

Permalink
Merge pull request #5 from Jorge-Lopes/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
schnetzlerjoe authored Aug 15, 2023
2 parents 37b2e43 + c1639bc commit 7c5a5a4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,20 @@ instance = E(home.zoe).startInstance(installation)

In the local solo repl, run the following commands.

Identify the home.ibcport that has the icacontroller prefix
```shell
home.ibcport.then(ps => Promise.all(ps.map(p => E(p).getLocalAddress())))
```
Replace the position with the number of the icacontroller prefix above, most likely will be the position 2. Remember that it is 0 indexed.
```javascript
// Get the ibc port objects list
home.ibcport
// Get a port from the port list
port = history[0][0]
port = history[0][<position>]
```
Set up the connection handlers. Feel free to change as you please.
```javascript
Expand Down Expand Up @@ -110,4 +118,4 @@ const res = await E(instance.publicFacet).sendICATxPacket(
],
connection,
);
```
```

0 comments on commit 7c5a5a4

Please sign in to comment.