Skip to content

Commit

Permalink
fix: linking lib directly inline in the bytecode (#163)
Browse files Browse the repository at this point in the history
Signed-off-by: Mariusz Jasuwienas <[email protected]>
  • Loading branch information
arianejasuwienas committed Feb 12, 2025
1 parent 5169e68 commit 88fd942
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/KeyLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pragma solidity ^0.8.0;
import {IHederaTokenService} from "./IHederaTokenService.sol";

library KeyLib {
function keyExists(uint keyType, IHederaTokenService.TokenInfo memory tokenInfo) public pure returns (bool) {
function keyExists(uint keyType, IHederaTokenService.TokenInfo memory tokenInfo) internal pure returns (bool) {
for (uint256 i = 0; i < tokenInfo.token.tokenKeys.length; i++) {
if (tokenInfo.token.tokenKeys[i].keyType == keyType) {
IHederaTokenService.KeyValue memory key = tokenInfo.token.tokenKeys[i].key;
Expand Down

0 comments on commit 88fd942

Please sign in to comment.