Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- contract A {
- function verifyUser(address userAddress) public returns (bool) {
- bool verified = false;
- uint id = userId[userAddress];
- if(id != 0){
- verified = true;
- }
- return verified;
- }}
- Contract B {
- function verifyUser (uint[] P, address dc, address userAddress) onlyOwner public returns (bool) {
- bool verified=false;
- for (uint i = 0; i<P.length; i++){
- if(P[i] ==1) {
- verified=dc.call(bytes4(keccak256("verifyUser(address)")),userAddress);
- }
- }
- return verified ;
- }}
Add Comment
Please, Sign In to add comment