1.0.0 • Published 2 years ago
cheackpoint-solidity v1.0.0
Checkpoint Solidity
Reentrancy Guard Example
mapping(address => bool) calling ;
function call() public payable {
require(!calling[msg.sender], 'Reentrancy detected');
calling[msg.sender] = true ;
/* your code */
}
Then What is the problem ?
Checkpoint Solidity
1 NPM
$ npm i checkpoint-solidity
Usage
import './node_modules/checkpoint-solidity/checkpoint.sol
2 importing dericty from repository when using remix IDE.
import "https://github.com/FreenetProject/Cheackpoint-Solidity/checkpoint.sol"
3 clone
$ git clone "https://github.com/FreenetProject/Cheackpoint-Solidity";
$ cd Cheackpoint-Solidity
Usage
import "./Cheackpoint-Solidity/checkpoint.sol"
}
1.0.0
2 years ago