File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -358,8 +358,13 @@ type (
358
358
Enabled bool `toml:"enabled"`
359
359
}
360
360
361
+ ethereum struct {
362
+ Enabled bool `toml:"enabled"`
363
+ }
364
+
361
365
web3 struct {
362
366
Solana solana `toml:"solana"`
367
+ Ethereum ethereum `toml:"ethereum"`
363
368
}
364
369
)
365
370
@@ -1318,12 +1323,17 @@ func (e external) fromAuthConfig(remoteConfig v1API.AuthConfigResponse) {
1318
1323
1319
1324
func (w web3 ) toAuthConfigBody (body * v1API.UpdateAuthConfigBody ) {
1320
1325
body .ExternalWeb3SolanaEnabled = nullable .NewNullableWithValue (w .Solana .Enabled )
1326
+ body .ExternalWeb3EthereumEnabled = nullable .NewNullableWithValue (w .Ethereum .Enabled )
1321
1327
}
1322
1328
1323
1329
func (w * web3 ) fromAuthConfig (remoteConfig v1API.AuthConfigResponse ) {
1324
1330
if value , err := remoteConfig .ExternalWeb3SolanaEnabled .Get (); err == nil {
1325
1331
w .Solana .Enabled = value
1326
1332
}
1333
+
1334
+ if value , err := remoteConfig .ExternalWeb3EthereumEnabled .Get (); err == nil {
1335
+ w .Ethereum .Enabled = value
1336
+ }
1327
1337
}
1328
1338
1329
1339
func (a * auth ) DiffWithRemote (remoteConfig v1API.AuthConfigResponse ) ([]byte , error ) {
You can’t perform that action at this time.
0 commit comments