Skip to content

Commit

Permalink
Fix error in program/{programID} endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
raychu86 committed May 11, 2023
1 parent eb22bba commit 3f38772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/rest/src/routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ impl<N: Network, C: ConsensusStorage<N>, R: Routing<N>> Rest<N, C, R> {
State(rest): State<Self>,
Path(id): Path<ProgramID<N>>,
) -> Result<ErasedJson, RestError> {
let program = if id == ProgramID::<N>::from_str("creadits.aleo")? {
let program = if id == ProgramID::<N>::from_str("credits.aleo")? {
Program::<N>::credits()?
} else {
rest.ledger.get_program(id)?
Expand Down

0 comments on commit 3f38772

Please sign in to comment.