Skip to content

Commit 4405cf9

Browse files
authored
[hebao2] fix complition warning (#2373)
1 parent 4421d3f commit 4405cf9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/hebao_v2/contracts/base/libwallet/GuardianLib.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

packages/hebao_v2/contracts/thirdparty/strings.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)