-
Notifications
You must be signed in to change notification settings - Fork 15
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
Hardhat-ignition fails to deploy contracts #543
Comments
After fixing that bug, I encounter the next one:
Which comes from:
The request which triggers it is: {
jsonrpc: '2.0',
method: 'eth_call',
params: [
{
value: '0x0',
data: '0x608060405234801561001057600080fd5b506101bc806100206000396000f3fe60806040526004361061001e5760003560e01c806323b872dd14610023575b600080fd5b6100366100313660046100e5565b610038565b005b604080516001600160a01b03858116602483015284166044820152606480820184905282518083039091018152608490910182526020810180516001600160e01b03166000356001600160e01b03191617905290517f998729e624ef59107d5781f8c021b04a5d7b5153dd0ef79e7a08a9f8ab40a5a3916100bc9133913491610121565b60405180910390a1505050565b80356001600160a01b03811681146100e057600080fd5b919050565b6000806000606084860312156100fa57600080fd5b610103846100c9565b9250610111602085016100c9565b9150604084013590509250925092565b60018060a01b038416815260006020848184015260606040840152835180606085015260005b8181101561016357858101830151858201608001528201610147565b506000608082860101526080601f19601f8301168501019250505094935050505056fea2646970667358221220fd6667e915f896f3ce18c5cb6d6753a873674e2380a080ec28379c887a0cc56564736f6c63430008120033',
from: '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266',
nonce: '0x0',
gas: '0x24dd3',
gasPrice: '0x174876e800'
},
'pending'
],
id: 12
} Result: {
jsonrpc: '2.0',
id: 12,
error: {
code: -32000,
message: 'invalid argument: unexpected integer size'
}
} This is likely because I fixed it by setting the To address as |
Closing #544 as it's the wrong workaround. Have logged a ticket in clickup to add real support for simulating contract creation. Performing an In oasis web3 gateway the For the correct behavior the Alternatively there could be an |
It fails with the following error:
ProviderError: to address not specified
In
rpc/eth/api.go
it checks specifically for whetherto
parameter is passed when simulating a transaction, however this means that contract deployments can't be simulated in the way that hardhat-ignition expects.See relevant code in hardhat-ignition: https://github.com/NomicFoundation/hardhat-ignition/blob/6a2bf9fba8cc2e4c64f8a65efbf8051f43e2fa0e/packages/core/src/internal/execution/future-processor/helpers/network-interaction-execution.ts#L167
The text was updated successfully, but these errors were encountered: