Skip to content

Commit c90c9ff

Browse files
fix return type for ERC20.Claim()
1 parent b0d68b4 commit c90c9ff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Assets/Thirdweb/Scripts/ERC20.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -105,17 +105,17 @@ public async Task<TransactionResult> Burn(string amount)
105105
/// <summary>
106106
/// Claim a given amount of currency for compatible drop contracts
107107
/// </summary>
108-
public async Task<TransactionResult[]> Claim(string amount)
108+
public async Task<TransactionResult> Claim(string amount)
109109
{
110-
return await Bridge.InvokeRoute<TransactionResult[]>(getRoute("claim"), Utils.ToJsonStringArray(amount));
110+
return await Bridge.InvokeRoute<TransactionResult>(getRoute("claim"), Utils.ToJsonStringArray(amount));
111111
}
112112

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

121121
/// <summary>

0 commit comments

Comments
 (0)