Skip to content

Commit

Permalink
fix return type for ERC20.Claim()
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquim-verges committed Dec 2, 2022
1 parent b0d68b4 commit c90c9ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Assets/Thirdweb/Scripts/ERC20.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,17 @@ public async Task<TransactionResult> Burn(string amount)
/// <summary>
/// Claim a given amount of currency for compatible drop contracts
/// </summary>
public async Task<TransactionResult[]> Claim(string amount)
public async Task<TransactionResult> Claim(string amount)
{
return await Bridge.InvokeRoute<TransactionResult[]>(getRoute("claim"), Utils.ToJsonStringArray(amount));
return await Bridge.InvokeRoute<TransactionResult>(getRoute("claim"), Utils.ToJsonStringArray(amount));
}

/// <summary>
/// Claim a given amount of currency to a given destination wallet for compatible drop contracts
/// </summary>
public async Task<TransactionResult[]> ClaimTo(string address, int amount)
public async Task<TransactionResult> ClaimTo(string address, int amount)
{
return await Bridge.InvokeRoute<TransactionResult[]>(getRoute("claimTo"), Utils.ToJsonStringArray(address, amount));
return await Bridge.InvokeRoute<TransactionResult>(getRoute("claimTo"), Utils.ToJsonStringArray(address, amount));
}

/// <summary>
Expand Down

0 comments on commit c90c9ff

Please sign in to comment.