Skip to content

Commit

Permalink
fix: Add devnet POW contract addresses to configs
Browse files Browse the repository at this point in the history
  • Loading branch information
bgins committed Jun 13, 2024
1 parent e568204 commit c3e9c11
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/options/configs/dev.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ users_address = "0x0DCd1Bf9A1b36cE34237eEaFef220932846BCD82"
token_address = "0xa513E6E4b8f2a923D98304ec87F64353C4D5C853"
mediation_address = "0x0B306BF915C4d645ff596e518fAf3F9669b97016"
jobcreator_address = "0x9A9f2CCfdE556A7E9Ff0848998Aa4a0CFD8863AE"
pow_address = "0x4c5859f0F772848b2D91F1D83E2Fe57935348029"
1 change: 1 addition & 0 deletions pkg/options/configs/devnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ users_address = "0x0DCd1Bf9A1b36cE34237eEaFef220932846BCD82"
token_address = "0xa513E6E4b8f2a923D98304ec87F64353C4D5C853"
mediation_address = "0x0B306BF915C4d645ff596e518fAf3F9669b97016"
jobcreator_address = "0x9A9f2CCfdE556A7E9Ff0848998Aa4a0CFD8863AE"
pow_address = "0x4c5859f0F772848b2D91F1D83E2Fe57935348029"
3 changes: 3 additions & 0 deletions pkg/options/web3.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion pkg/web3/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:"-"`
Expand Down

0 comments on commit c3e9c11

Please sign in to comment.