Skip to content

Commit

Permalink
Update TaikoTest.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
dantaik committed Feb 14, 2024
1 parent f09b36a commit 429285e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/protocol/test/TaikoTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ abstract contract TaikoTest is Test, DeployCapability {
return keccak256(abi.encodePacked("bytes32", _seed++));
}

function strToBytes32(string memory input) internal returns (bytes32 result) {
function strToBytes32(string memory input) internal pure returns (bytes32 result) {
require(bytes(input).length <= 32, "String too long");
// Copy the string's bytes directly into the bytes32 variable
assembly {
Expand Down

0 comments on commit 429285e

Please sign in to comment.