Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Dec 5, 2022
1 parent cb7b028 commit 49274ea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ build
node_modules
release
test*
distributor.json
distributor-state.json
5 changes: 5 additions & 0 deletions Contracts/Distributor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"abi": [{"inputs":[{"internalType":"address[]","name":"addrs","type":"address[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"distribute","outputs":[],"stateMutability":"payable","type":"function"}],
"bytecode": "608060405234801561001057600080fd5b506103be806100206000396000f3fe60806040526004361061001e5760003560e01c80632929abe614610023575b600080fd5b61003661003136600461028e565b610038565b005b600034845b8083101561023957848484818110610057576100576102fa565b905060200201358210156100a55760405162461bcd60e51b815260206004820152601060248201526f6e6f7420656e6f7567682066756e647360801b60448201526064015b60405180910390fd5b8484848181106100b7576100b76102fa565b90506020020135826100c99190610326565b915060008787858181106100df576100df6102fa565b90506020020160208101906100f4919061033f565b6001600160a01b031686868681811061010f5761010f6102fa565b9050602002013560405160006040518083038185875af1925050503d8060008114610156576040519150601f19603f3d011682016040523d82523d6000602084013e61015b565b606091505b50509050806101a35760405162461bcd60e51b81526020600482015260146024820152733330b4b632b2103a379039b2b7321032ba3432b960611b604482015260640161009c565b7fb649c98f58055c520df0dcb5709eff2e931217ff2fb1e21376130d31bbb1c0af8888868181106101d6576101d66102fa565b90506020020160208101906101eb919061033f565b8787878181106101fd576101fd6102fa565b604080516001600160a01b0390951685526020918202939093013590840152500160405180910390a1836102308161036f565b9450505061003d565b50505050505050565b60008083601f84011261025457600080fd5b50813567ffffffffffffffff81111561026c57600080fd5b6020830191508360208260051b850101111561028757600080fd5b9250929050565b600080600080604085870312156102a457600080fd5b843567ffffffffffffffff808211156102bc57600080fd5b6102c888838901610242565b909650945060208701359150808211156102e157600080fd5b506102ee87828801610242565b95989497509550505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8181038181111561033957610339610310565b92915050565b60006020828403121561035157600080fd5b81356001600160a01b038116811461036857600080fd5b9392505050565b60006001820161038157610381610310565b506001019056fea264697066735822122005f9054b8ff9b29c5fc7bcc457e84b4b3b664e2eebc3f681d6d2653b990aa2c864736f6c63430008110033",
"deployed": "60806040526004361061001e5760003560e01c80632929abe614610023575b600080fd5b61003661003136600461028e565b610038565b005b600034845b8083101561023957848484818110610057576100576102fa565b905060200201358210156100a55760405162461bcd60e51b815260206004820152601060248201526f6e6f7420656e6f7567682066756e647360801b60448201526064015b60405180910390fd5b8484848181106100b7576100b76102fa565b90506020020135826100c99190610326565b915060008787858181106100df576100df6102fa565b90506020020160208101906100f4919061033f565b6001600160a01b031686868681811061010f5761010f6102fa565b9050602002013560405160006040518083038185875af1925050503d8060008114610156576040519150601f19603f3d011682016040523d82523d6000602084013e61015b565b606091505b50509050806101a35760405162461bcd60e51b81526020600482015260146024820152733330b4b632b2103a379039b2b7321032ba3432b960611b604482015260640161009c565b7fb649c98f58055c520df0dcb5709eff2e931217ff2fb1e21376130d31bbb1c0af8888868181106101d6576101d66102fa565b90506020020160208101906101eb919061033f565b8787878181106101fd576101fd6102fa565b604080516001600160a01b0390951685526020918202939093013590840152500160405180910390a1836102308161036f565b9450505061003d565b50505050505050565b60008083601f84011261025457600080fd5b50813567ffffffffffffffff81111561026c57600080fd5b6020830191508360208260051b850101111561028757600080fd5b9250929050565b600080600080604085870312156102a457600080fd5b843567ffffffffffffffff808211156102bc57600080fd5b6102c888838901610242565b909650945060208701359150808211156102e157600080fd5b506102ee87828801610242565b95989497509550505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8181038181111561033957610339610310565b92915050565b60006020828403121561035157600080fd5b81356001600160a01b038116811461036857600080fd5b9392505050565b60006001820161038157610381610310565b506001019056fea264697066735822122005f9054b8ff9b29c5fc7bcc457e84b4b3b664e2eebc3f681d6d2653b990aa2c864736f6c63430008110033"
}
2 changes: 1 addition & 1 deletion src/funding-tool.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ async function sendTransaction(txhex) {


async function deployDistributor() {
var distributorStateFile = "distributor.json";
var distributorStateFile = "distributor-state.json";
var distributorState;
if(fs.existsSync(distributorStateFile))
distributorState = JSON.parse(fs.readFileSync(distributorStateFile, "utf8"));
Expand Down

0 comments on commit 49274ea

Please sign in to comment.