Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzhiran committed Feb 20, 2025
1 parent 02aadb1 commit 73b7a8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion smartcontracts/contracts/GeodnetDapp.sol
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ contract GeodnetDapp is IDapp {
for (uint256 i = 12; i < 22; i++) {
bool isMoved = isBitSet(data[22], 9 - (i - 12));
if (isMoved) {
address deviceAddr = address(bytes20(data[i]));
address deviceAddr = address(uint160(uint256(data[i])));
IMarshalDAOTicker(ticker).tick(deviceAddr);
}
}
Expand Down
2 changes: 1 addition & 1 deletion smartcontracts/contracts/test/MockDappMovementBatch.sol
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ contract MockDappMovementBatch {
for (uint256 i = 12; i < 22; i++) {
bool isMoved = isBitSet(data[22], 9 - (i - 12));
if (isMoved) {
address deviceAddr = address(bytes20(data[i]));
address deviceAddr = address(uint160(uint256(data[i])));
deviceTick[deviceAddr]++;
}
}
Expand Down

0 comments on commit 73b7a8b

Please sign in to comment.