File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
packages/hebao_v2/contracts Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -388,11 +388,11 @@ library GuardianLib
388388 )
389389 private
390390 view
391- returns (Guardian memory )
391+ returns (Guardian memory guardian )
392392 {
393393 uint pos = wallet.guardianIdx[addr];
394394 if (pos > 0 ) {
395- return wallet.guardians[pos - 1 ];
395+ guardian = wallet.guardians[pos - 1 ];
396396 }
397397 }
398398
Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ library strings {
4444 uint _ptr;
4545 }
4646
47- function memcpy (uint dest , uint src , uint len ) private pure {
47+ function memcpy (uint dest , uint src , uint _len ) private pure {
4848 // Copy word-length chunks while possible
49- for (; len >= 32 ; len -= 32 ) {
49+ for (; _len >= 32 ; _len -= 32 ) {
5050 assembly {
5151 mstore (dest, mload (src))
5252 }
@@ -55,7 +55,7 @@ library strings {
5555 }
5656
5757 // Copy remaining bytes
58- uint mask = 256 ** (32 - len ) - 1 ;
58+ uint mask = 256 ** (32 - _len ) - 1 ;
5959 assembly {
6060 let srcpart := and (mload (src), not (mask))
6161 let destpart := and (mload (dest), mask)
You can’t perform that action at this time.
0 commit comments