Skip to content

Commit 27fccc0

Browse files
DA-271 expose remoterpc provider
Signed-off-by: Dzianis Andreyenka <[email protected]>
1 parent aec8dac commit 27fccc0

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

internal/stacks/stack_manager.go

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ import (
3232
"github.com/hyperledger/firefly-cli/internal/blockchain"
3333
"github.com/hyperledger/firefly-cli/internal/blockchain/ethereum/besu"
3434
"github.com/hyperledger/firefly-cli/internal/blockchain/ethereum/geth"
35-
"github.com/hyperledger/firefly-cli/internal/blockchain/ethereum/remoterpc"
35+
ethremoterpc "github.com/hyperledger/firefly-cli/internal/blockchain/ethereum/remoterpc"
3636
"github.com/hyperledger/firefly-cli/internal/blockchain/fabric"
37+
tezosremoterpc "github.com/hyperledger/firefly-cli/internal/blockchain/tezos/remoterpc"
3738
"github.com/hyperledger/firefly-cli/internal/constants"
3839
"github.com/hyperledger/firefly-cli/internal/core"
3940
"github.com/hyperledger/firefly-cli/internal/docker"
@@ -1066,6 +1067,10 @@ func replaceVersions(oldManifest, newManifest *types.VersionManifest, filename s
10661067
new = newManifest.Evmconnect.GetDockerImageString()
10671068
s = strings.Replace(s, old, new, -1)
10681069

1070+
old = oldManifest.Tezosconnect.GetDockerImageString()
1071+
new = newManifest.Tezosconnect.GetDockerImageString()
1072+
s = strings.Replace(s, old, new, -1)
1073+
10691074
old = oldManifest.Fabconnect.GetDockerImageString()
10701075
new = newManifest.Fabconnect.GetDockerImageString()
10711076
s = strings.Replace(s, old, new, -1)
@@ -1221,10 +1226,13 @@ func (s *StackManager) getBlockchainProvider() blockchain.IBlockchainProvider {
12211226
return besu.NewBesuProvider(s.ctx, s.Stack)
12221227
case types.BlockchainNodeProviderRemoteRPC:
12231228
s.Stack.DisableTokenFactories = true
1224-
return remoterpc.NewRemoteRPCProvider(s.ctx, s.Stack)
1229+
return ethremoterpc.NewRemoteRPCProvider(s.ctx, s.Stack)
12251230
default:
12261231
return nil
12271232
}
1233+
case types.BlockchainProviderTezos:
1234+
s.Stack.DisableTokenFactories = true
1235+
return tezosremoterpc.NewRemoteRPCProvider(s.ctx, s.Stack)
12281236
case types.BlockchainProviderFabric:
12291237
s.Stack.DisableTokenFactories = true
12301238
return fabric.NewFabricProvider(s.ctx, s.Stack)

0 commit comments

Comments
 (0)