Skip to content

Commit

Permalink
rename namings
Browse files Browse the repository at this point in the history
  • Loading branch information
AgusVelez5 committed Oct 9, 2024
1 parent e4b5805 commit 59e474c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/libraries/Permit2Parsing.sol
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// SPDX-License-Identifier: Apache 2

pragma solidity ^0.8.24;
pragma solidity ^0.8.4;

import {BytesParsing} from "wormhole-sdk/libraries/BytesParsing.sol";

library Permit2Parsing {
library PermitParsing {
using BytesParsing for bytes;

uint constant SIGNATURE_SIZE = 65;

function _parsePermit(
function asPermitCdUnchecked(
bytes calldata params,
uint offset
) internal pure returns (uint256, uint256, bytes32, bytes32, uint8, uint) {
Expand All @@ -26,7 +26,7 @@ library Permit2Parsing {
return (value, deadline, r, s, v, offset);
}

function _parsePermit2Permit(
function asPermit2PermitCdUnchecked(
bytes calldata params,
uint offset
) internal pure returns (uint160, uint48, uint48, uint256, bytes memory, uint) {
Expand All @@ -43,7 +43,7 @@ library Permit2Parsing {
return (amount, expiration, nonce, sigDeadline, signature, offset);
}

function _parsePermit2Transfer(
function asPermit2TransferCdUnchecked(
bytes calldata params,
uint offset
) internal pure returns (uint256, uint256, uint256, bytes memory, uint) {
Expand Down

0 comments on commit 59e474c

Please sign in to comment.