From 92db8df3ece73e6337930b5cfee0c5754300bbb7 Mon Sep 17 00:00:00 2001 From: Samyak Jain <34437877+KaymasJain@users.noreply.github.com> Date: Thu, 26 Aug 2021 16:21:11 +0530 Subject: [PATCH] Update how-to-add-new-connector.md --- docs/how-to-add-new-connector.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/how-to-add-new-connector.md b/docs/how-to-add-new-connector.md index 29207022..8d787696 100644 --- a/docs/how-to-add-new-connector.md +++ b/docs/how-to-add-new-connector.md @@ -31,7 +31,7 @@ Few things to consider while writing the connector: * `_eventParam` of `bytes` type: This will be the abi encoded event parameters * The contracts should not have `selfdestruct()` * The contracts should not have `delegatecall()` -* Use `uint(-1)` for maximum amount everywhere +* Use `uint(-1)` of `type(uint256).max` for maximum amount everywhere * Use `ethAddr` (declared in `Stores`) to denote Ethereum (non-ERC20) * 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.