Skip to content

Commit 7840ec2

Browse files
authored
fix: ffi ipfs array size (#642)
1 parent 0459d4e commit 7840ec2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/IpfsUtils.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ library IpfsUtils {
77
error FfiFailed();
88

99
function ipfsHashFile(Vm vm, string memory filePath, bool upload) internal returns (bytes32) {
10-
string[] memory inputs = new string[](5);
10+
string[] memory inputs = new string[](upload ? 5 : 4);
1111
inputs[0] = 'npx';
1212
inputs[1] = '@aave-dao/aave-helpers-js@^1.0.0';
1313
inputs[2] = 'ipfs';

0 commit comments

Comments
 (0)