@@ -11,6 +11,7 @@ contract Storage {
1111 error MyCustomError (uint value , string message );
1212
1313 uint256 number;
14+ address deployer = 0xea02F564664A477286B93712829180be4764fAe2 ;
1415
1516 constructor () payable {
1617 number = 1337 ;
@@ -30,10 +31,18 @@ contract Storage {
3031 revert ();
3132 }
3233
33- function retrieve () public view returns (uint256 ){
34+ function retrieve () public view returns (uint256 ) {
3435 return number;
3536 }
3637
38+ function getDeployer () public view returns (address ) {
39+ return deployer;
40+ }
41+
42+ function getBalance (address addr ) public view returns (uint256 ) {
43+ return addr.balance;
44+ }
45+
3746 function sum (int A , int B ) public returns (int ) {
3847 int s = A+ B;
3948 emit Calculated (msg .sender , A, B, s);
@@ -64,11 +73,11 @@ contract Storage {
6473 selfdestruct (payable (msg .sender ));
6574 }
6675
67- function assertError () public pure {
76+ function assertError () public pure {
6877 require (false , "Assert Error Message " );
6978 }
7079
71- function customError () public pure {
80+ function customError () public pure {
7281 revert MyCustomError (5 , "Value is too low " );
7382 }
7483
@@ -86,14 +95,14 @@ contract Storage {
8695 return output;
8796 }
8897
89- function verifyArchCallToFlowBlockHeight () public view returns (uint64 ){
98+ function verifyArchCallToFlowBlockHeight () public view returns (uint64 ) {
9099 (bool ok , bytes memory data ) = cadenceArch.staticcall (abi.encodeWithSignature ("flowBlockHeight() " ));
91100 require (ok, "unsuccessful call to arch " );
92101 uint64 output = abi.decode (data, (uint64 ));
93102 return output;
94103 }
95104
96- function verifyArchCallToVerifyCOAOwnershipProof (address arg0 , bytes32 arg1 , bytes memory arg2 ) public view returns (bool ){
105+ function verifyArchCallToVerifyCOAOwnershipProof (address arg0 , bytes32 arg1 , bytes memory arg2 ) public view returns (bool ) {
97106 (bool ok , bytes memory data ) = cadenceArch.staticcall (abi.encodeWithSignature ("verifyCOAOwnershipProof(address,bytes32,bytes) " , arg0, arg1, arg2));
98107 require (ok, "unsuccessful call to arch " );
99108 bool output = abi.decode (data, (bool ));
0 commit comments