Skip to content

Commit

Permalink
Fix string/IntentName type mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
VojtechVitek committed May 5, 2024
1 parent c03af33 commit fe79c1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpc/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (s *RPC) ChainList(ctx context.Context) ([]*proto.Chain, error) {
func parseIntent(pi *proto.Intent) (*intents.Intent, string, error) {
intent := &intents.Intent{
Version: pi.Version,
Name: pi.Name,
Name: intents.IntentName(pi.Name),
IssuedAt: pi.IssuedAt,
ExpiresAt: pi.ExpiresAt,
Data: pi.Data,
Expand Down Expand Up @@ -68,7 +68,7 @@ func convertToAPIIntent(intent *intents.Intent) *api.Intent {
}
return &api.Intent{
Version: intent.Version,
Name: intent.Name,
Name: string(intent.Name),
ExpiresAt: intent.ExpiresAt,
IssuedAt: intent.IssuedAt,
Data: intent.Data,
Expand Down

0 comments on commit fe79c1a

Please sign in to comment.