From 8fbdc1aecd552e1bfdd2bb7c169e1f390ce7c747 Mon Sep 17 00:00:00 2001 From: pistomat Date: Tue, 17 Sep 2024 10:29:31 +0200 Subject: [PATCH] fix: Make decodeSignature internal (#103) Using public or external function in a Solidity library forces the library to be externally deployed and linked instead of embedded. --- src/Transactions.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Transactions.sol b/src/Transactions.sol index 810acd8..db3e19c 100644 --- a/src/Transactions.sol +++ b/src/Transactions.sol @@ -427,7 +427,7 @@ library Transactions { return response; } - function decodeSignature(bytes memory signature) public pure returns (uint8 v, bytes32 r, bytes32 s) { + function decodeSignature(bytes memory signature) internal pure returns (uint8 v, bytes32 r, bytes32 s) { assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40))