fix_: token auth

This commit is contained in:
Andrey Bocharnikov 2025-01-13 16:15:55 +04:00
parent 304bb71802
commit 29847c9501

View File

@ -303,7 +303,7 @@ func (c *Client) getEthClients(network *params.Network) []ethclient.RPSLimitedEt
authEncoded := base64.StdEncoding.EncodeToString([]byte(provider.AuthLogin + ":" + provider.AuthPassword))
headers.Set("Authorization", "Basic "+authEncoded)
case params.TokenAuth:
headers.Set("Authorization", "Bearer "+provider.AuthToken)
provider.URL = provider.URL + provider.AuthToken
}
}