Skip to content

Commit

Permalink
Merge pull request #1644 from oasisprotocol/kostko/fix/denom-resolution
Browse files Browse the repository at this point in the history
client-sdk/go: Fix denomination resolution
  • Loading branch information
kostko authored Feb 16, 2024
2 parents 2269b44 + da76e86 commit 2772a0a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client-sdk/go/config/paratime.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package config

import (
"fmt"
"strings"

"github.com/oasisprotocol/oasis-core/go/common"
)
Expand Down Expand Up @@ -155,8 +156,8 @@ func (p *ParaTime) GetDenominationInfo(d string) *DenominationInfo {
var di *DenominationInfo
if len(d) == 0 {
di = p.Denominations[NativeDenominationKey]
} else {
di = p.Denominations[d]
} else if di = p.Denominations[d]; di == nil {
di = p.Denominations[strings.ToLower(d)]
}

if di != nil {
Expand Down

0 comments on commit 2772a0a

Please sign in to comment.