Commit 44057030 authored by Michael de Hoog's avatar Michael de Hoog

Variable rename

parent 1095a392
......@@ -20,8 +20,8 @@ var (
l2PredeployNamespace = common.HexToAddress("0x4200000000000000000000000000000000000000")
// BigL2PredeployNamespace represents the predeploy namespace as a big.Int
BigL2PredeployNamespace = new(big.Int).SetBytes(l2PredeployNamespace.Bytes())
// bigCodeNameSpace represents the predeploy namespace as a big.Int
bigCodeNameSpace = new(big.Int).SetBytes(codeNamespace.Bytes())
// bigCodeNamespace represents the predeploy namespace as a big.Int
bigCodeNamespace = new(big.Int).SetBytes(codeNamespace.Bytes())
// ImplementationSlot represents the EIP 1967 implementation storage slot
ImplementationSlot = common.HexToHash("0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc")
// AdminSlot represents the EIP 1967 admin storage slot
......@@ -69,7 +69,7 @@ func AddressToCodeNamespace(addr common.Address) (common.Address, error) {
return common.Address{}, fmt.Errorf("cannot handle non predeploy: %s", addr)
}
bigAddress := new(big.Int).SetBytes(addr[18:])
num := new(big.Int).Or(bigCodeNameSpace, bigAddress)
num := new(big.Int).Or(bigCodeNamespace, bigAddress)
return common.BigToAddress(num), nil
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment