|
@ -1,5 +1,6 @@ |
|
|
//SPDX-License-Identifier: MIT |
|
|
//SPDX-License-Identifier: MIT |
|
|
pragma solidity 0.7.1; |
|
|
pragma solidity 0.7.1; |
|
|
|
|
|
pragma experimental ABIEncoderV2; |
|
|
|
|
|
|
|
|
contract Forum { |
|
|
contract Forum { |
|
|
|
|
|
|
|
@ -73,6 +74,10 @@ contract Forum { |
|
|
return users[userAddress].timestamp; |
|
|
return users[userAddress].timestamp; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function getUser(address userAddress) public view returns (User memory) { |
|
|
|
|
|
require(hasUserSignedUp(userAddress), "User hasn't signed up yet."); |
|
|
|
|
|
return users[userAddress]; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//----------------------------------------POSTING---------------------------------------- |
|
|
//----------------------------------------POSTING---------------------------------------- |
|
|
struct Topic { |
|
|
struct Topic { |
|
|