Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
aac58896
Unverified
Commit
aac58896
authored
Sep 03, 2021
by
Annie Ke
Committed by
Kelvin Fichter
Nov 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comply with new restrictions on explicit type conversions
parent
b8e18edf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
3 deletions
+4
-3
Lib_PredeployAddresses.sol
.../contracts/libraries/constants/Lib_PredeployAddresses.sol
+1
-0
Lib_RLPReader.sol
packages/contracts/contracts/libraries/rlp/Lib_RLPReader.sol
+1
-1
Lib_Bytes32Utils.sol
.../contracts/contracts/libraries/utils/Lib_Bytes32Utils.sol
+1
-1
TestERC20.sol
packages/contracts/contracts/test-helpers/TestERC20.sol
+1
-1
No files found.
packages/contracts/contracts/libraries/constants/Lib_PredeployAddresses.sol
View file @
aac58896
...
...
@@ -10,6 +10,7 @@ library Lib_PredeployAddresses {
address internal constant L1_MESSAGE_SENDER = 0x4200000000000000000000000000000000000001;
address internal constant DEPLOYER_WHITELIST = 0x4200000000000000000000000000000000000002;
address payable internal constant OVM_ETH = 0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000;
// solhint-disable-next-line max-line-length
address internal constant L2_CROSS_DOMAIN_MESSENGER = 0x4200000000000000000000000000000000000007;
address internal constant LIB_ADDRESS_MANAGER = 0x4200000000000000000000000000000000000008;
address internal constant PROXY_EOA = 0x4200000000000000000000000000000000000009;
...
...
packages/contracts/contracts/libraries/rlp/Lib_RLPReader.sol
View file @
aac58896
...
...
@@ -403,7 +403,7 @@ library Lib_RLPReader {
"Invalid RLP address value."
);
return address(
readUint256(_in
));
return address(
uint160(readUint256(_in)
));
}
/**
...
...
packages/contracts/contracts/libraries/utils/Lib_Bytes32Utils.sol
View file @
aac58896
...
...
@@ -75,6 +75,6 @@ library Lib_Bytes32Utils {
bytes32
)
{
return bytes32(uint256(
_in
));
return bytes32(uint256(
uint160(_in)
));
}
}
packages/contracts/contracts/test-helpers/TestERC20.sol
View file @
aac58896
...
...
@@ -45,7 +45,7 @@ contract TestERC20 {
}
function transferFrom(address from, address to, uint256 value) external returns (bool) {
if (allowance[from][msg.sender] !=
uint(-1)
) {
if (allowance[from][msg.sender] !=
type(uint).max
) {
allowance[from][msg.sender] = allowance[from][msg.sender].sub(value);
}
_transfer(from, to, value);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment