diff --git a/pkg/options/configs/dev.toml b/pkg/options/configs/dev.toml index 1dfb307c..daf7f400 100644 --- a/pkg/options/configs/dev.toml +++ b/pkg/options/configs/dev.toml @@ -12,3 +12,4 @@ users_address = "0x0DCd1Bf9A1b36cE34237eEaFef220932846BCD82" token_address = "0xa513E6E4b8f2a923D98304ec87F64353C4D5C853" mediation_address = "0x0B306BF915C4d645ff596e518fAf3F9669b97016" jobcreator_address = "0x9A9f2CCfdE556A7E9Ff0848998Aa4a0CFD8863AE" +pow_address = "0x4c5859f0F772848b2D91F1D83E2Fe57935348029" diff --git a/pkg/options/configs/devnet.toml b/pkg/options/configs/devnet.toml index 6217e257..3450698a 100644 --- a/pkg/options/configs/devnet.toml +++ b/pkg/options/configs/devnet.toml @@ -12,3 +12,4 @@ users_address = "0x0DCd1Bf9A1b36cE34237eEaFef220932846BCD82" token_address = "0xa513E6E4b8f2a923D98304ec87F64353C4D5C853" mediation_address = "0x0B306BF915C4d645ff596e518fAf3F9669b97016" jobcreator_address = "0x9A9f2CCfdE556A7E9Ff0848998Aa4a0CFD8863AE" +pow_address = "0x4c5859f0F772848b2D91F1D83E2Fe57935348029" diff --git a/pkg/options/web3.go b/pkg/options/web3.go index eb79f94a..afa79a86 100644 --- a/pkg/options/web3.go +++ b/pkg/options/web3.go @@ -126,6 +126,9 @@ func ProcessWeb3Options(options web3.Web3Options, network string) (web3.Web3Opti if options.TokenAddress == "" { options.TokenAddress = config.Web3.TokenAddress } + if options.PowAddress == "" { + options.PowAddress = config.Web3.PowAddress + } if options.PrivateKey == "" { options.PrivateKey = os.Getenv("WEB3_PRIVATE_KEY") diff --git a/pkg/web3/types.go b/pkg/web3/types.go index e2fb05de..f5af6437 100644 --- a/pkg/web3/types.go +++ b/pkg/web3/types.go @@ -21,7 +21,7 @@ type Web3Options struct { TokenAddress string `json:"token_address" toml:"token_address"` MediationAddress string `json:"mediation_address" toml:"mediation_address"` JobCreatorAddress string `json:"jobcreator_address" toml:"jobcreator_address"` - PowAddress string `json:"pow_address"` + PowAddress string `json:"pow_address" toml:"pow_address"` // this is injected by whatever service we are running // it's used for logging tx's Service system.Service `json:"-" toml:"-"`