Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

starter.seedNewAllocations #2

Open
leonardo3dp opened this issue Aug 18, 2021 · 0 comments
Open

starter.seedNewAllocations #2

leonardo3dp opened this issue Aug 18, 2021 · 0 comments

Comments

@leonardo3dp
Copy link

server\operator\seed.js
tx = await starter.seedNewAllocations(merkleRoot, totalAllocation);

----returns error----

I tried to change the gas limit but no effect

changed the code to use with ganache
var provider = new ethers.providers.WebSocketProvider(process.env.INFURA_ID);
INFURA_ID="http://localhost:7545"

Error: transaction failed (transactionHash="0x0e2900a2188155c657e26179d50246be227047a3bf690e438f6f86c8b26d0592", transaction={"nonce":17,"gasPrice":{"type":"BigNumber","hex":"0x32"},"gasLimit":{"type":"BigNumber","hex":"0x02540be3ff"},"to":"0x90E8CFAc49d1C6505b50A188F9452625c69Cdf2B","value":{"type":"BigNumber","hex":"0x00"},"data":"0x65ef53b116ce1e7024ffb41673011a7bf03a0d943d6eacc95e10652cee0c7a6ac70b185800000000000000000000000000000000000000000000000b99d8ba2ded980000","chainId":1337,"v":2709,"r":"0x489da20f1547cf3d52dd6ab5335a38c4c65ea4cd0308caaac9af20cd982473af","s":"0x507ca772043cfd662c6988b395c13e56800e7c9ae9d465497ae3d2d8d20c6fdd","from":"0xca7085aCA58b231698746b4847d777f0c5dEF760","hash":"0x0e2900a2188155c657e26179d50246be227047a3bf690e438f6f86c8b26d0592","type":null,"confirmations":0}, receipt={"to":"0x90E8CFAc49d1C6505b50A188F9452625c69Cdf2B","from":"0xca7085aCA58b231698746b4847d777f0c5dEF760","contractAddress":null,"transactionIndex":0,"gasUsed":{"type":"BigNumber","hex":"0x02540be3ff"},"logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","blockHash":"0xc88228186469d8e742c7e1783fd724bba691eebe2ba31ade6af23be6eb5cd003","transactionHash":"0x0e2900a2188155c657e26179d50246be227047a3bf690e438f6f86c8b26d0592","logs":[],"blockNumber":18,"confirmations":1,"cumulativeGasUsed":{"type":"BigNumber","hex":"0x02540be3ff"},"status":0,"type":0,"byzantium":true}, code=CALL_EXCEPTION, version=providers/5.4.3)
at Logger.makeError (D:\Projetos Crypto\Folk\merklestarter-main\merklestarter-main\server\node_modules@ethersproject\logger\lib\index.js:187:21)
at Logger.throwError (D:\Projetos Crypto\Folk\merklestarter-main\merklestarter-main\server\node_modules@ethersproject\logger\lib\index.js:196:20)
at WebSocketProvider. (D:\Projetos Crypto\Folk\merklestarter-main\merklestarter-main\server\node_modules@ethersproject\providers\lib\base-provider.js:1320:36)
at step (D:\Projetos Crypto\Folk\merklestarter-main\merklestarter-main\server\node_modules@ethersproject\providers\lib\base-provider.js:48:23)
at Object.next (D:\Projetos Crypto\Folk\merklestarter-main\merklestarter-main\server\node_modules@ethersproject\providers\lib\base-provider.js:29:53)
at fulfilled (D:\Projetos Crypto\Folk\merklestarter-main\merklestarter-main\server\node_modules@ethersproject\providers\lib\base-provider.js:20:58)
at processTicksAndRejections (internal/process/task_queues.js:95:5) {
reason: 'transaction failed',
code: 'CALL_EXCEPTION',
transactionHash: '0x0e2900a2188155c657e26179d50246be227047a3bf690e438f6f86c8b26d0592',
transaction: {
nonce: 17,
gasPrice: BigNumber { _hex: '0x32', _isBigNumber: true },
gasLimit: BigNumber { _hex: '0x02540be3ff', _isBigNumber: true },
to: '0x90E8CFAc49d1C6505b50A188F9452625c69Cdf2B',
value: BigNumber { _hex: '0x00', _isBigNumber: true },
data: '0x65ef53b116ce1e7024ffb41673011a7bf03a0d943d6eacc95e10652cee0c7a6ac70b185800000000000000000000000000000000000000000000000b99d8ba2ded980000',
chainId: 1337,
v: 2709,
r: '0x489da20f1547cf3d52dd6ab5335a38c4c65ea4cd0308caaac9af20cd982473af',
s: '0x507ca772043cfd662c6988b395c13e56800e7c9ae9d465497ae3d2d8d20c6fdd',
from: '0xca7085aCA58b231698746b4847d777f0c5dEF760',
hash: '0x0e2900a2188155c657e26179d50246be227047a3bf690e438f6f86c8b26d0592',
type: null,
confirmations: 0,
wait: [Function (anonymous)]
},
receipt: {
to: '0x90E8CFAc49d1C6505b50A188F9452625c69Cdf2B',
from: '0xca7085aCA58b231698746b4847d777f0c5dEF760',
contractAddress: null,
transactionIndex: 0,
gasUsed: BigNumber { _hex: '0x02540be3ff', _isBigNumber: true },
logsBloom: '0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
blockHash: '0xc88228186469d8e742c7e1783fd724bba691eebe2ba31ade6af23be6eb5cd003',
transactionHash: '0x0e2900a2188155c657e26179d50246be227047a3bf690e438f6f86c8b26d0592',
logs: [],
blockNumber: 18,
confirmations: 1,
cumulativeGasUsed: BigNumber { _hex: '0x02540be3ff', _isBigNumber: true },
status: 0,
type: 0,
byzantium: true
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant