From c65d9f128caa57d46d10922a274ec827650f6e02 Mon Sep 17 00:00:00 2001 From: floor-licker Date: Mon, 9 Dec 2024 11:16:49 -0500 Subject: [PATCH] Remove safeMath reference from FullRelayWithVerify.sol safeMath is redundant in Solidity versions `>=0.8.0` as overflow/underflow is handled natively by the compiler, and in a more efficient and robust way than safeMath's implementation. This also just allows for removal of dependency on an external library. --- src/relay/FullRelayWithVerify.sol | 1 - 1 file changed, 1 deletion(-) diff --git a/src/relay/FullRelayWithVerify.sol b/src/relay/FullRelayWithVerify.sol index cfd68896..ae4e19dd 100644 --- a/src/relay/FullRelayWithVerify.sol +++ b/src/relay/FullRelayWithVerify.sol @@ -9,7 +9,6 @@ import {BTCUtils} from "@bob-collective/bitcoin-spv/BTCUtils.sol"; import {ValidateSPV} from "@bob-collective/bitcoin-spv/ValidateSPV.sol"; contract FullRelayWithVerify is FullRelay { - using SafeMath for uint256; using BTCUtils for bytes; using BTCUtils for uint256;