Build-Squad / arbitrum-csharp-sdk

Apache License 2.0
0 stars 1 forks source link

C-Sharp SDK - Resolve errors and exceptions #6

Open pavanrawoor opened 2 weeks ago

pavanrawoor commented 2 weeks ago
ranaabhishek172 commented 2 weeks ago

Currently getting while depositing Eth

Microsoft.CSharp.RuntimeBinder.RuntimeBinderException HResult=0x80131500 Message=Cannot convert type 'Arbitrum.DataEntities.SignerOrProvider' to 'string' Source=System.Linq.Expressions StackTrace: at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0) at Arbitrum.DataEntities.SignerProviderUtils.d5.MoveNext() in C:\arbitrum-dev\src\lib\DataEntities\SignerOrProvider.cs:line 133 at Arbitrum.AssetBridgerModule.AssetBridger`3.d5.MoveNext() in C:\arbitrum-dev\src\lib\AssetBridger\AssetBridger.cs:line 40 at Arbitrum.AssetBridgerModule.EthBridger.d6.MoveNext() in C:\arbitrum-dev\src\lib\AssetBridger\EthBridger.cs:line 159 at Program.

d0.MoveNext() in C:\Users\Admin\Downloads\ArbitrumTutorials\EthDeposit\Program.cs:line 52

Working on the fix.

ranaabhishek172 commented 2 weeks ago
System.Exception : Invalid account used signing

Stack Trace:  AccountSignerTransactionManager.SignAndSendTransactionAsync(TransactionInput transaction) AccountSignerTransactionManager.SendTransactionAsync(TransactionInput transactionInput) TransactionReceiptPollingService.SendRequestAndWaitForReceiptAsync(Func1 transactionFunction, CancellationToken cancellationToken) CallSite.Target(Closure, CallSite, Object) UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0) EthBridger.Deposit(Object parameters) line 213 EthDepositTesting.EthDepositTest() line 57 GenericAdapter1.BlockUntilCompleted() NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter) AsyncToSyncAdapter.Await[TResult](Func1 invoke) AsyncToSyncAdapter.Await(Func1 invoke) TestMethodCommand.RunTestMethod(TestExecutionContext context) TestMethodCommand.Execute(TestExecutionContext context) <>cDisplayClass3_0.b0() <>cDisplayClass1_0`1.b0(Object _) ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) ContextUtils.DoIsolated(ContextCallback callback, Object state) ContextUtils.DoIsolated[T](Func`1 func) SimpleWorkItem.PerformWork()

ranaabhishek172 commented 2 weeks ago
Nethereum.JsonRpc.Client.RpcResponseException : invalid remainder: eth_sendRawTransaction

found a workaround for this issue here https://github.com/trufflesuite/ganache/issues/1114

ranaabhishek172 commented 2 weeks ago
Nethereum.JsonRpc.Client.RpcResponseException : intrinsic gas too low: eth_sendRawTransaction
ranaabhishek172 commented 1 week ago
Nethereum.JsonRpc.Client.RpcResponseException : insufficient funds for gas * price + value: eth_sendRawTransaction

workaround for this issue: https://github.com/Nethereum/Nethereum/issues/384

ranaabhishek172 commented 1 week ago
Nethereum.JsonRpc.Client.RpcResponseException : intrinsic gas too low: eth_sendRawTransaction

Description of this issue : https://ethereum.stackexchange.com/questions/1570/what-does-intrinsic-gas-too-low-mean

ranaabhishek172 commented 1 week ago

Nethereum.JsonRpc.Client.RpcResponseException : The field to must have byte length of 20: eth_estimateGas

opened a new issue to Nethereum for resolution: https://github.com/Nethereum/Nethereum/issues/1029