Skip to content

Commit

Permalink
rpc: update MultiverseRoot with new option API
Browse files Browse the repository at this point in the history
  • Loading branch information
Roasbeef committed Nov 14, 2023
1 parent a04602c commit 44e27ee
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions rpcserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -2941,9 +2941,12 @@ func (r *rpcServer) MultiverseRoot(ctx context.Context,
err)
}

return &unirpc.MultiverseRootResponse{
MultiverseRoot: marshalMssmtNode(rootNode),
}, nil
var resp unirpc.MultiverseRootResponse
rootNode.WhenSome(func(node universe.MultiverseRoot) {
resp.MultiverseRoot = marshalMssmtNode(node)
})

return &resp, nil
}

// AssetRoots queries for the known Universe roots associated with each known
Expand Down

0 comments on commit 44e27ee

Please sign in to comment.