Skip to content

Commit

Permalink
feat(orchestration): add getPort method to ChainAccount
Browse files Browse the repository at this point in the history
  • Loading branch information
0xpatrickdev committed Apr 2, 2024
1 parent 15f9172 commit 148ebf2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/vats/src/orchestration.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export const ChainAccountI = M.interface('ChainAccount', {
getAddress: M.call().returns(M.string()),
getLocalAddress: M.call().returns(M.string()),
getRemoteAddress: M.call().returns(M.string()),
getPort: M.call().returns(M.remotable('Port')),
executeTx: M.callWhen(M.arrayOf(M.record())).returns(M.any()),
executeEncodedTx: M.callWhen(M.string()).returns(M.any()),
deposit: M.callWhen(M.remotable('Payment'))
Expand Down Expand Up @@ -101,6 +102,9 @@ const prepareChainAccount = zone =>
remoteAddress || Fail`remote address not available`;
return remoteAddress;
},
getPort() {
return this.state.port;
},
/** @param {Bytes} packetBytes */
async executeEncodedTx(packetBytes) {
const { connection } = this.state;
Expand Down

0 comments on commit 148ebf2

Please sign in to comment.