From 148ebf2249fab5d4bcf960aa194375f3bcc959f1 Mon Sep 17 00:00:00 2001 From: 0xPatrick Date: Tue, 2 Apr 2024 10:01:45 -0400 Subject: [PATCH] feat(orchestration): add getPort method to ChainAccount --- packages/vats/src/orchestration.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/vats/src/orchestration.js b/packages/vats/src/orchestration.js index 2f30f1d82892..5a67e5f5ffd2 100644 --- a/packages/vats/src/orchestration.js +++ b/packages/vats/src/orchestration.js @@ -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')) @@ -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;