Skip to content

Commit 52ea718

Browse files
authored
Merge pull request #342 from hyperledger/fix_cardano_config
fix: Cardano contracts config
2 parents 17cc7a4 + 56957b2 commit 52ea718

File tree

1 file changed

+5
-5
lines changed
  • internal/blockchain/cardano/connector/cardanoconnect

1 file changed

+5
-5
lines changed

internal/blockchain/cardano/connector/cardanoconnect/config.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import (
3030
type Config struct {
3131
Log *types.LogConfig `yaml:"log,omitempty"`
3232
Connector *ConnectorConfig `yaml:"connector,omitempty"`
33+
Contracts *ContractsConfig `yaml:"contracts,omitempty"`
3334
Metrics *types.MetricsServerConfig `yaml:"metrics,omitempty"`
3435
Persistence *PersistenceConfig `yaml:"persistence,omitempty"`
3536
FFCore *FFCoreConfig `yaml:"ffcore,omitempty"`
@@ -45,7 +46,6 @@ type APIConfig struct {
4546

4647
type ConnectorConfig struct {
4748
Blockchain *BlockchainConfig `yaml:"blockchain,omitempty"`
48-
Contracts *ContractsConfig `yaml:"contracts,omitempty"`
4949
SignerURL string `yaml:"signerUrl,omitempty"`
5050
}
5151

@@ -143,12 +143,12 @@ func (c *Cardanoconnect) GenerateConfig(stack *types.Stack, org *types.Organizat
143143
Network: stack.Network,
144144
Socket: socket,
145145
},
146-
Contracts: &ContractsConfig{
147-
ComponentsPath: "/cardanoconnect/contracts/components",
148-
StoresPath: "/cardanoconnect/contracts/stores",
149-
},
150146
SignerURL: fmt.Sprintf("http://%s_cardanosigner:8555", stack.Name),
151147
},
148+
Contracts: &ContractsConfig{
149+
ComponentsPath: "/cardanoconnect/contracts/components",
150+
StoresPath: "/cardanoconnect/contracts/stores",
151+
},
152152
Persistence: &PersistenceConfig{
153153
Type: "sqlite",
154154
Path: "/cardanoconnect/sqlite/db.sqlite3",

0 commit comments

Comments
 (0)