Skip to content

Commit

Permalink
feat(x/bank): Replace regex parsing of denom validation to generated …
Browse files Browse the repository at this point in the history
…parsing (cosmos#19511)
  • Loading branch information
mattverse committed Mar 8, 2024
1 parent 11b6186 commit e9dd2d8
Show file tree
Hide file tree
Showing 9 changed files with 1,193 additions and 30 deletions.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ run:
timeout: 5m
skip-files:
- server/grpc/gogoreflection/serverreflection.go
- types/coin_regex.go

linters:
disable-all: true
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/bank/keeper/deterministic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type DeterministicTestSuite struct {
}

var (
denomRegex = sdk.DefaultCoinDenomRegex()
denomRegex = `[a-zA-Z][a-zA-Z0-9/:._-]{2,127}`
addr1 = sdk.MustAccAddressFromBech32("cosmos139f7kncmglres2nf3h4hc4tade85ekfr8sulz5")
coin1 = sdk.NewCoin("denom", sdk.NewInt(10))
metadataAtom = banktypes.Metadata{
Expand Down
Loading

0 comments on commit e9dd2d8

Please sign in to comment.