This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Web3 = require('web3'); | |
const web3 = new Web3('http://localhost:8545'); // your Blockchain client endpoint | |
const contractAddress = '0x123456789...'; // your contract address | |
const abi = [/* Smart Contract ABI */]; // your contract ABI | |
const contract = new web3.eth.Contract(abi, contractAddress); | |
const isIMEIexist = {}; | |
const isPhoneNumberexist = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Notes: | |
# self.disconnect_nodes(1, 2) | |
# self.generate(self.nodes[1], sync_fun=lambda: None, nblocks=1) | |
# self.connect_nodes(1, 2) | |
#!/usr/bin/env python3 | |
# Copyright (c) 2017-2021 The Bitcoin Core developers | |
# Distributed under the MIT software license, see the accompanying | |
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | |
"""An example functional test |