Skip to content

Commit

Permalink
Fixed fail on precompile dll import error (#5725)
Browse files Browse the repository at this point in the history
* - Rethrow DllNotFoundException when encountered on call sight in Precompile execution
  • Loading branch information
Demuirgos authored and kamilchodola committed May 26, 2023
1 parent d876507 commit 628ddf0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Nethermind/Nethermind.Evm/VirtualMachine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,11 @@ private CallResult ExecutePrecompile(EvmState state, IReleaseSpec spec)
CallResult callResult = new(output.ToArray(), success, !success);
return callResult;
}
catch (DllNotFoundException exception)
{
if (_logger.IsError) _logger.Error($"Failed to load one of the dependencies of {precompile.GetType()} precompile", exception);
throw;
}
catch (Exception exception)
{
if (_logger.IsDebug) _logger.Error($"Precompiled contract ({precompile.GetType()}) execution exception", exception);
Expand Down

0 comments on commit 628ddf0

Please sign in to comment.