Skip to content

Commit

Permalink
feat: show ipfs preview (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra authored Jun 3, 2023
1 parent 8504b3e commit 4c4d223
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/GovHelpers.sol
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ library GovHelpers {
inputs[4] = '-u';
inputs[5] = vm.toString(upload);
bytes memory bs58Hash = vm.ffi(inputs);
console2.logString('Info: This preview will only work when the file has been uploaded to ipfs');
console2.logString(
string(
abi.encodePacked(
'Preview: https://app.aave.com/governance/ipfs-preview/?ipfsHash=',
vm.toString(bs58Hash)
)
)
);
return bytes32(bs58Hash);
}

Expand Down

0 comments on commit 4c4d223

Please sign in to comment.