fixed contract address handling
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
func TestNewRailGateway_NormalizesRail(t *testing.T) {
|
||||
gw := NewRailGateway(nil, RailGatewayConfig{Rail: "card_payout", Network: "tron"})
|
||||
gw := NewRailGateway(nil, RailGatewayConfig{Rail: "card", Network: "tron"})
|
||||
if got, want := gw.Rail(), discovery.RailCardPayout; got != want {
|
||||
t.Fatalf("unexpected rail: got=%q want=%q", got, want)
|
||||
}
|
||||
|
||||
@@ -223,6 +223,7 @@ func (s *Service) startDiscoveryAnnouncers() {
|
||||
}
|
||||
announce := discovery.Announcement{
|
||||
ID: discovery.StableCryptoRailGatewayID(string(network.Name)),
|
||||
InstanceID: discovery.InstanceID(),
|
||||
Service: "CRYPTO_RAIL_GATEWAY",
|
||||
Rail: discovery.RailCrypto,
|
||||
Operations: discovery.CryptoRailGatewayOperations(),
|
||||
|
||||
Reference in New Issue
Block a user