Skip to content

Commit 40c96c1

Browse files
committed
Fix argument check in SendTransactionAsync
1 parent 8e84596 commit 40c96c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Packages/com.walletconnect.web3modal/Runtime/Evm/EvmService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public Task<string> WriteContractAsync(string contractAddress, string contractAb
9999

100100
public Task<string> SendTransactionAsync(string addressTo, BigInteger value, string data = null)
101101
{
102-
if (string.IsNullOrWhiteSpace(data))
102+
if (string.IsNullOrWhiteSpace(addressTo))
103103
throw new ArgumentNullException(nameof(addressTo));
104104

105105
return SendTransactionAsyncCore(addressTo, value, data);

0 commit comments

Comments
 (0)