Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge-Lopes authored Aug 2, 2023
1 parent 37b2e43 commit c1639bc
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 c1639bc

Please sign in to comment.