We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f994ff commit f660dc9Copy full SHA for f660dc9
1 file changed
test/Base58.t.sol
@@ -4,6 +4,8 @@ pragma solidity ^0.8.4;
4
import "./utils/SoladyTest.sol";
5
import {Base58} from "../src/utils/Base58.sol";
6
import {LibString} from "../src/utils/LibString.sol";
7
+import {LibBytes} from "../src/utils/LibBytes.sol";
8
+
9
10
contract Base58Test is SoladyTest {
11
function testBase58DecodeRevertsIfInvalidCharacter(bytes1 c) public {
@@ -28,6 +30,10 @@ contract Base58Test is SoladyTest {
28
30
}
29
31
32
function testBase58EncodeDecode(bytes memory data, uint256 r) public {
33
+ if (data.length > 1000) {
34
+ LibBytes.truncate(data, 1000);
35
+ }
36
37
if (r & 0x00f == 0) {
38
_brutalizeMemory();
39
0 commit comments