Skip to content

Commit

Permalink
fix/audit: [M-03] Unchecked parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
ptisserand committed Mar 27, 2024
1 parent e832d9f commit eda1d53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/blockchain/ethereum/src/Bridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ contract Starklane is IStarklaneEvent, UUPSOwnableProxied, StarklaneState, Stark

_transferOwnership(owner);

setStarklaneL2Address(Cairo.snaddressWrap(starklaneL2Address));
setStarklaneL2Address(starklaneL2Address);
setStarklaneL2Selector(starklaneL2Selector);
}

Expand Down
4 changes: 2 additions & 2 deletions apps/blockchain/ethereum/src/State.sol
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ contract StarklaneState is Ownable {
@param l2Address Starklane L2 address.
*/
function setStarklaneL2Address(
snaddress l2Address
uint256 l2Address
)
public
onlyOwner
{
_starklaneL2Address = l2Address;
_starklaneL2Address = Cairo.snaddressWrap(l2Address);
}

/**
Expand Down

0 comments on commit eda1d53

Please sign in to comment.