Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed return type of Cosmos_cryptoPubKey_ToAmino #524

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

Zetazzz
Copy link
Collaborator

@Zetazzz Zetazzz commented Nov 15, 2023

toAmino converter needs a explict return type

export const Cosmos_cryptoPubKey_ToAmino = (content: Any) => {
  return decodePubkey(content);
};

to:

export const Cosmos_cryptoPubKey_ToAmino = (content: Any): Pubkey | null => {
  return decodePubkey(content);
};

@Zetazzz Zetazzz merged commit fa67cb0 into main Nov 15, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant