Skip to content

Commit e1a8725

Browse files
committed
fix erc20 transfer
1 parent 09ec832 commit e1a8725

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/Thirdweb/Core/Scripts/ERC20.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public async Task<TransactionResult> Transfer(string to, string amount)
199199
}
200200
else
201201
{
202-
return await TransactionManager.ThirdwebWrite(contractAddress, new TokenERC20Contract.TransferFunction() { Amount = BigInteger.Parse(amount.ToWei()) });
202+
return await TransactionManager.ThirdwebWrite(contractAddress, new TokenERC20Contract.TransferFunction() { To = to, Amount = BigInteger.Parse(amount.ToWei()) });
203203
}
204204
}
205205

0 commit comments

Comments
 (0)