Update README.md

adding setId() and getId() into requirement
This commit is contained in:
Lecky Lao 2020-07-19 00:24:35 +10:00 committed by GitHub
parent 56c7d10a43
commit 803e074b8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,8 @@ Be sure to comply with the requirements while building connectors for better com
- Use `getEthAddr()` to denote Ethereum (non-ERC20). - Use `getEthAddr()` to denote Ethereum (non-ERC20).
- Use `address(this)` instead of `msg.sender` for fetching balance on-chain, etc. - Use `address(this)` instead of `msg.sender` for fetching balance on-chain, etc.
- Only `approve()` limited amount while giving ERC20 allowance, which strictly needs to be 0 by the end of the spell. - Only `approve()` limited amount while giving ERC20 allowance, which strictly needs to be 0 by the end of the spell.
- Use `getId()` for getting value that saved from previous spell.
- Use `setId()` for setting value to save for the future spell.
<!-- - If required, Add two additional parameter, `getId` & `setId` in external public functions. <!-- - If required, Add two additional parameter, `getId` & `setId` in external public functions.
- Use `getUint()` or `setUint()` functions to fetch or store values. - Use `getUint()` or `setUint()` functions to fetch or store values.