Closed SoarinSkySagar closed 1 month ago
@SoarinSkySagar is attempting to deploy a commit to the Screenshot Team on Vercel.
A member of the Team first needs to authorize it.
Hi @ptisserand, I have completed all the required tasks and ensured good coding practices in the commit (Issue #227), please review and merge!
Hi, thanks for your contribution but there is a compilation issue when trying to run tests. Could you please fix it?
hi @ptisserand, yesterday when I ran the test it was compiling, can you please share the screenshot of the error so I can look into it?
Ok, maybe your forgot to commit & push, here is the errors:
--> src/TestMessaging.sol
Error (7576): Undeclared identifier.
--> test/Cairo.t.sol:125:9:
|
125 | buf1[0] = 0;
| ^^^^
Error (7576): Undeclared identifier.
--> test/Cairo.t.sol:126:93:
|
126 | (address[] memory result1, uint256 newOffset1) = Cairo.cairoAddressArrayDeserialize(buf1, 0);
| ^^^^
Error (7576): Undeclared identifier.
--> test/Cairo.t.sol:131:9:
|
131 | buf2[0] = 2;
| ^^^^
Error (7576): Undeclared identifier.
--> test/Cairo.t.sol:132:9:
|
132 | buf2[1] = uint160(address(0x1234567890abcdef1234567890abcdef12345678));
| ^^^^
Error (7576): Undeclared identifier.
--> test/Cairo.t.sol:133:9:
|
133 | buf2[2] = uint160(address(0xabcdefabcdefabcdefabcdefabcdefabcdefabcd));
| ^^^^
Error (7576): Undeclared identifier.
--> test/Cairo.t.sol:135:93:
|
135 | (address[] memory result2, uint256 newOffset2) = Cairo.cairoAddressArrayDeserialize(buf2, 0);
| ^^^^
Error (7576): Undeclared identifier.
--> test/Cairo.t.sol:142:9:
|
142 | buf3[0] = 1;
| ^^^^
Error (7576): Undeclared identifier.
--> test/Cairo.t.sol:143:9:
|
143 | buf3[1] = uint160(address(0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef));
| ^^^^
Error (7576): Undeclared identifier.
--> test/Cairo.t.sol:145:93:
|
145 | (address[] memory result3, uint256 newOffset3) = Cairo.cairoAddressArrayDeserialize(buf3, 0);
| ^^^^
Error:
Compilation failed
Hi @ptisserand, can you please check now? Earlier the forge commands were running on the main branch of the forked repo whereas I was working on a new branch (even though I changed the branch to the working one), hence no errors were generated. Had to re-clone the forked repo and the errors were there as you said. Here's the new checklist of tasks completed:
addressArraySerialize
and its corresponding unit test.test_cairoAddressArrayDeserialize
function.Hi @ptisserand, hope its okay now and and merge-able :)
Description
Closes issue #227.
Tasks:
Request
struct inProtocol.sol
to haveaddress
type fornewOwners
cairoAddressArrayDeserialize
inCairo.sol
to deserializenewOwners
array, with proper comments above the function, in consistence with the rest of the file.cairoAddressArrayDeserialize
function to deserialize theaddress
array inProtocol.sol
.Protocol.sol
inProtocol.t.sol
so that it is being tested against the propernewOwners
type.test_cairoAddressArrayDeserialize
inCairo.t.sol
for the functioncairoAddressArrayDeserialize
.This PR was created as part of OnlyDust's ODHack 8.0.