Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Open sidebar
Tiger Ton
osmosis
Commits
3a131a06
Unverified
Commit
3a131a06
authored
2 years ago
by
mergify[bot]
Committed by
GitHub
2 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Wrap tokenfactory error (#1634) (#1639)
parent
b3915fbb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
x/tokenfactory/keeper/msg_server.go
+1
-1
x/tokenfactory/keeper/msg_server.go
with
1 addition
and
1 deletion
+1
-1
x/tokenfactory/keeper/msg_server.go
+
1
-
1
View file @
3a131a06
...
...
@@ -47,7 +47,7 @@ func (server msgServer) Mint(goCtx context.Context, msg *types.MsgMint) (*types.
// pay some extra gas cost to give a better error here.
_
,
denomExists
:=
server
.
bankKeeper
.
GetDenomMetaData
(
ctx
,
msg
.
Amount
.
Denom
)
if
!
denomExists
{
return
nil
,
types
.
ErrDenomDoesNotExist
return
nil
,
types
.
ErrDenomDoesNotExist
.
Wrapf
(
"denom: %s"
,
msg
.
Amount
.
Denom
)
}
authorityMetadata
,
err
:=
server
.
Keeper
.
GetAuthorityMetadata
(
ctx
,
msg
.
Amount
.
GetDenom
())
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets