Skip to content

Commit

Permalink
ETHCONNECT_IDENTITY is unused env var in either connector
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Broadhurst <[email protected]>
  • Loading branch information
peterbroadhurst committed Feb 2, 2022
1 parent 03131ae commit 68f55de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 2 additions & 3 deletions internal/tokens/erc1155/erc1155_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@ func (p *ERC1155Provider) GetDockerServiceDefinitions(tokenIdx int) []*docker.Se
ContainerName: fmt.Sprintf("%s_tokens_%v_%v", p.Stack.Name, i, tokenIdx),
Ports: []string{fmt.Sprintf("%d:3000", member.ExposedTokensPorts[tokenIdx])},
Environment: map[string]string{
"ETHCONNECT_URL": p.getEthconnectURL(member, member.ExposedTokensPorts[tokenIdx]),
"ETHCONNECT_INSTANCE": "/contracts/erc1155",
"AUTO_INIT": "false",
"ETHCONNECT_URL": p.getEthconnectURL(member, member.ExposedTokensPorts[tokenIdx]),
"AUTO_INIT": "false",
},
DependsOn: map[string]map[string]string{
"ethconnect_" + member.ID: {"condition": "service_started"},
Expand Down
6 changes: 2 additions & 4 deletions internal/tokens/erc20erc721/erc20_erc721_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package erc20erc721

import (
"fmt"
"strings"

"github.com/hyperledger/firefly-cli/internal/core"
"github.com/hyperledger/firefly-cli/internal/docker"
Expand Down Expand Up @@ -57,9 +56,8 @@ func (p *ERC20ERC721Provider) GetDockerServiceDefinitions(tokenIdx int) []*docke
ContainerName: fmt.Sprintf("%s_tokens_%v_%v", p.Stack.Name, i, tokenIdx),
Ports: []string{fmt.Sprintf("%d:3000", member.ExposedTokensPorts[tokenIdx])},
Environment: map[string]string{
"ETHCONNECT_URL": p.getEthconnectURL(member, member.ExposedTokensPorts[tokenIdx]),
"ETHCONNECT_IDENTITY": strings.TrimPrefix(member.Address, "0x"),
"AUTO_INIT": "false",
"ETHCONNECT_URL": p.getEthconnectURL(member, member.ExposedTokensPorts[tokenIdx]),
"AUTO_INIT": "false",
},
DependsOn: map[string]map[string]string{
"ethconnect_" + member.ID: {"condition": "service_started"},
Expand Down

0 comments on commit 68f55de

Please sign in to comment.