Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
boscohyun committed May 21, 2024
1 parent 4d01177 commit 4fbfa1b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Mimir/Controllers/BalanceController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ public class BalanceController : ControllerBase
new Address("0x47D082a115c63E7b58B1532d20E631538eaFADde"));
#pragma warning restore CS0618 // Type or member is obsolete

[HttpGet("{currency}")]
[HttpGet("{currencyTicker}")]
public async Task<Balance?> GetBalance(
string network,
string address,
string currency,
string currencyTicker,
IStateService stateService)
{
Address agentAddress;
Expand All @@ -37,7 +37,7 @@ public class BalanceController : ControllerBase
return null;
}

Currency? c = currency switch
Currency? c = currencyTicker switch
{
"NCG" => _ncg,
"CRYSTAL" => Currencies.Crystal,
Expand All @@ -47,7 +47,7 @@ public class BalanceController : ControllerBase
{
try
{
c = Currencies.GetMinterlessCurrency(currency);
c = Currencies.GetMinterlessCurrency(currencyTicker);
}
catch (ArgumentNullException)
{
Expand Down

0 comments on commit 4fbfa1b

Please sign in to comment.