Employee Access Card
Learn how to integrate the POPP employee access card into your code
To integrate our smart contracts you will need to install our interface
package
npm install popp-interfaces
After the npm package has been installed, you can now import the IAccessCardSft
into your contract
import "popp-interfaces/IAccessCardSft.sol";
Then you will need to instantiate our contract:
IEmployerSft private employerSft;
function constructor(address _employerSftAddress) {
employerSft = IEmployerSft(_employerSftAddress);
}
You can now use the contract accordingly (refer to the reference):
uint256 _employerId = employerSft.employerIdFromWallet(msg.sender);
Last updated