You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am using the following code to transfer custom ERC20 token var transferResponse = await Web3Accessor.Web3.Erc20.Transfer(contractAddress, toAccount, amountTransfer); Debug.Log("Transfer Response : "+transferResponse");
The transfer is being successful, but not getting the response.
When the transaction is completed getting the following Logs :
[Web3] [WalletConnect SDK] Got generic response for type System.String
(The error) WalletConnectException: RPC method eth_blockNumber is not supported. If you add a new method you have to update WalletConnectProvider code to reflect those changes. Contact ChainSafe if you think a specific method should be included in the SDK.
So in the above code the following line is not being invoked Debug.Log("Transfer Response : "+transferResponse");
And as the Transaction Hash number in another Scripts (In locked/Compiled script of chainsafe), we can't directly use this hash now as not getting the response.
I have used many Testnet to check this, like
Sepolia
Polygon Amoy
Aurora Testnet
Steps
Steps to reproduce the behavior:
Use any testnet from Sepolia, Polygon Amoy, Aurora Testnet or anyother.
Transfer custom ERC20 to another wallet address.
Now we'll get the error WalletConnectException: RPC method eth_blockNumber is not supported. If you add a new method you have to update WalletConnectProvider code to reflect those changes. Contact ChainSafe if you think a specific method should be included in the SDK.
and we can't Log the transferResponse as next line is not being executed.
Expected behavior
After the transaction we should able to see the response by Debug.Log and transaction status. Or we should be able to access the Transaction Hash
Console errors
After transaction successful we get the following logs with the error which prevent to get the response.
The Actual error :
WalletConnectException: RPC method eth_blockNumber is not supported. If you add a new method you have to update WalletConnectProvider code to reflect those changes. Contact ChainSafe if you think a specific method should be included in the SDK.
ChainSafe.Gaming.WalletConnect.WalletConnectProvider.Perform[T] (System.String method, System.Object[] parameters) (at <933ddf5316cf4e488cadc5f0b4c08b42>:0)
ChainSafe.Gaming.Evm.Providers.RpcProviderExtensions.GetBlockNumber (ChainSafe.Gaming.Evm.Providers.IRpcProvider provider) (at <6c43ab0ac0c54046b61790aa61a978c0>:0)
ChainSafe.Gaming.Evm.Providers.RpcProviderExtensions.GetTransaction (ChainSafe.Gaming.Evm.Providers.IRpcProvider provider, System.String transactionHash, System.Nullable1[T] timeOut) (at <6c43ab0ac0c54046b61790aa61a978c0>:0) ChainSafe.Gaming.WalletConnect.WalletConnectTransactionExecutor.SendTransaction (ChainSafe.Gaming.Evm.Transactions.TransactionRequest transaction) (at <933ddf5316cf4e488cadc5f0b4c08b42>:0) ChainSafe.Gaming.Evm.Contracts.Contract.SendWithReceipt (System.String method, System.Object[] parameters, ChainSafe.Gaming.Evm.Transactions.TransactionRequest overwrite) (at <6c43ab0ac0c54046b61790aa61a978c0>:0) ChainSafe.Gaming.Evm.Contracts.Contract.Send (System.String method, System.Object[] parameters, ChainSafe.Gaming.Evm.Transactions.TransactionRequest overwrite) (at <6c43ab0ac0c54046b61790aa61a978c0>:0) ChainSafe.Gaming.Evm.Contracts.BuiltIn.Erc20Contract.Transfer (System.String destinationAddress, System.Numerics.BigInteger amount) (at <6c43ab0ac0c54046b61790aa61a978c0>:0) TransferToken.TransferErc20 (System.String contractAddress, System.String toAccount, System.Numerics.BigInteger amountTransfer, System.Action2[T1,T2] _onTransferSucceed) (at Assets/Blockchain/Scripts/TransferToken.cs:15)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.b__7_0 (System.Object state) (at <51fded79cd284d4d911c5949aff4cb21>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at :0)
UnityEngine.UnitySynchronizationContext.Exec () (at :0)
UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at :0)
Reproducible Code Snippet (if applicable):
If the issue is related to a specific piece of code, provide the relevant code snippet here.
publicstaticasyncvoidTransferErc20(stringcontractAddress,stringtoAccount,BigIntegeramountTransfer,Action<BigInteger,bool>_onTransferSucceed){vartransferResponse=awaitWeb3Accessor.Web3.Erc20.Transfer(contractAddress,toAccount,amountTransfer);// The following lines are not being invoked even the transfer is successful, we get the error mentioned aboveDebug.Log("Transfer Response : "+transferResponse);varoutput=SampleOutputUtil.BuildOutputValue(transferResponse);Debug.Log("<Color=green> Log: "+output+" ERC-20 "+nameof(Erc20Service.Transfer));}
Desktop (please complete the following information):
Chainsafe SDK version: 2.6
Unity Version: 2022.3.35f1
Operating System: Windows 10
Additional context
The last time I have tested on Sepolia network
The network config :
Chain Id : 11155111
Chain : Sepolia
Network : ETH
Symbol : ETH
RPC : https://rpc.sepolia.org
My project Id : cd4c1f93-3cab-4d36-ade1-3ec3fa410a8f
The contract address 0x24383f6AC03b6B43ae95CFb83C88762Af1e142E8 is deployed on Sepolia through Remix Ide.
I am transferring using Metamask using this address 0xB65f5Ac5eAD9598f7Ec61c8C89033B970dA7B77D
The same error we'll get when we will call EVM.GetTransactionStatus.
The text was updated successfully, but these errors were encountered:
Describe the bug
I am using the following code to transfer custom ERC20 token
var transferResponse = await Web3Accessor.Web3.Erc20.Transfer(contractAddress, toAccount, amountTransfer); Debug.Log("Transfer Response : "+transferResponse");
The transfer is being successful, but not getting the response.
When the transaction is completed getting the following Logs :
So in the above code the following line is not being invoked
Debug.Log("Transfer Response : "+transferResponse");
And as the Transaction Hash number in another Scripts (In locked/Compiled script of chainsafe), we can't directly use this hash now as not getting the response.
I have used many Testnet to check this, like
Steps
Steps to reproduce the behavior:
and we can't Log the transferResponse as next line is not being executed.
Expected behavior
Console errors
After transaction successful we get the following logs with the error which prevent to get the response.
Previous few Logs :
The Actual error :
WalletConnectException: RPC method eth_blockNumber is not supported. If you add a new method you have to update WalletConnectProvider code to reflect those changes. Contact ChainSafe if you think a specific method should be included in the SDK.
ChainSafe.Gaming.WalletConnect.WalletConnectProvider.Perform[T] (System.String method, System.Object[] parameters) (at <933ddf5316cf4e488cadc5f0b4c08b42>:0)
ChainSafe.Gaming.Evm.Providers.RpcProviderExtensions.GetBlockNumber (ChainSafe.Gaming.Evm.Providers.IRpcProvider provider) (at <6c43ab0ac0c54046b61790aa61a978c0>:0)
ChainSafe.Gaming.Evm.Providers.RpcProviderExtensions.GetTransaction (ChainSafe.Gaming.Evm.Providers.IRpcProvider provider, System.String transactionHash, System.Nullable
1[T] timeOut) (at <6c43ab0ac0c54046b61790aa61a978c0>:0) ChainSafe.Gaming.WalletConnect.WalletConnectTransactionExecutor.SendTransaction (ChainSafe.Gaming.Evm.Transactions.TransactionRequest transaction) (at <933ddf5316cf4e488cadc5f0b4c08b42>:0) ChainSafe.Gaming.Evm.Contracts.Contract.SendWithReceipt (System.String method, System.Object[] parameters, ChainSafe.Gaming.Evm.Transactions.TransactionRequest overwrite) (at <6c43ab0ac0c54046b61790aa61a978c0>:0) ChainSafe.Gaming.Evm.Contracts.Contract.Send (System.String method, System.Object[] parameters, ChainSafe.Gaming.Evm.Transactions.TransactionRequest overwrite) (at <6c43ab0ac0c54046b61790aa61a978c0>:0) ChainSafe.Gaming.Evm.Contracts.BuiltIn.Erc20Contract.Transfer (System.String destinationAddress, System.Numerics.BigInteger amount) (at <6c43ab0ac0c54046b61790aa61a978c0>:0) TransferToken.TransferErc20 (System.String contractAddress, System.String toAccount, System.Numerics.BigInteger amountTransfer, System.Action
2[T1,T2] _onTransferSucceed) (at Assets/Blockchain/Scripts/TransferToken.cs:15)System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.b__7_0 (System.Object state) (at <51fded79cd284d4d911c5949aff4cb21>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at :0)
UnityEngine.UnitySynchronizationContext.Exec () (at :0)
UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at :0)
Reproducible Code Snippet (if applicable):
If the issue is related to a specific piece of code, provide the relevant code snippet here.
Desktop (please complete the following information):
Additional context
The last time I have tested on Sepolia network
The network config :
Chain Id : 11155111
Chain : Sepolia
Network : ETH
Symbol : ETH
RPC : https://rpc.sepolia.org
My project Id : cd4c1f93-3cab-4d36-ade1-3ec3fa410a8f
The contract address 0x24383f6AC03b6B43ae95CFb83C88762Af1e142E8 is deployed on Sepolia through Remix Ide.
I am transferring using Metamask using this address 0xB65f5Ac5eAD9598f7Ec61c8C89033B970dA7B77D
The same error we'll get when we will call
EVM.GetTransactionStatus
.The text was updated successfully, but these errors were encountered: