We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09ec832 commit e1a8725Copy full SHA for e1a8725
Assets/Thirdweb/Core/Scripts/ERC20.cs
@@ -199,7 +199,7 @@ public async Task<TransactionResult> Transfer(string to, string amount)
199
}
200
else
201
{
202
- return await TransactionManager.ThirdwebWrite(contractAddress, new TokenERC20Contract.TransferFunction() { Amount = BigInteger.Parse(amount.ToWei()) });
+ return await TransactionManager.ThirdwebWrite(contractAddress, new TokenERC20Contract.TransferFunction() { To = to, Amount = BigInteger.Parse(amount.ToWei()) });
203
204
205
0 commit comments