mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
Fixed address => bytes32 encoding
This commit is contained in:
parent
247d75f857
commit
e565ab7590
|
@ -23,9 +23,10 @@ contract InstaMappings is AccessControl {
|
||||||
public
|
public
|
||||||
pure
|
pure
|
||||||
returns (bytes32 role)
|
returns (bytes32 role)
|
||||||
{
|
{
|
||||||
|
bytes memory encoded = abi.encode(mappingContract);
|
||||||
assembly {
|
assembly {
|
||||||
role := mload(add(mappingContract, 32))
|
role := mload(add(encoded, 32))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user