Skip to content

Commit

Permalink
fix: Make decodeSignature internal (#103)
Browse files Browse the repository at this point in the history
Using public or external function in a Solidity library forces the library to be externally deployed and linked instead of embedded.
  • Loading branch information
pistomat authored Sep 17, 2024
1 parent 4c47bbe commit 8fbdc1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Transactions.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 8fbdc1a

Please sign in to comment.