immutability-io / vault-ethereum

A plugin that turns Vault into an Ethereum wallet.
243 stars 65 forks source link

Error for deploy smart contract #52

Open Rofael opened 5 years ago

Rofael commented 5 years ago

I use the deploy smart API, the contract can be deployed to rinkeby, but from the rinkeby exploerer, the 'TxReceipt Status' for this transaction has error.

Detailed Description

ethereum plugin version: 0.2.6 vault version:1.0.1

I use API ethereum/deploy/:account_name/contracts/:contract_name to deploy smart contract, the deploy can be ok, but there is error shown in explorer that there is error in smart contact execution.

This is the output in rinkeby explorer(https://rinkeby.etherscan.io/tx/0x08eb68cc8c9c5df210f80b930e97bc88f538095e9fb1e143ae1ea114a9a690ae)

TxHash:0x08eb68cc8c9c5df210f80b930e97bc88f538095e9fb1e143ae1ea114a9a690ae TxReceipt Status:FailBlock Height:3698370 (3 Block Confirmations) TimeStamp:1 min ago (Jan-16-2019 02:07:59 AM +UTC) From:0x74bc468c663f9c76ac18c3b53f5b78966fe420c7 To:[Contract 0x44c5b242e0205ef1b4e21936d5c7dda572d5f067 Created]
Warning! Error encountered during contract execution [gas uint64 overflow]
Value:0 Ether ($0.00) Gas Limit: 3500000 Gas Used By Transaction:3500000 (100%) Gas Price:0.000000001 Ether (1 Gwei) Actual Tx Cost/Fee:0.0035 Ether ($0.000000)

I checked everything and suspect it is related to transaction_data field which is not correct.

So my question is: In my code, the transaction_data field in deploy API is the compiled data read of smart contract from bytecode in utf8 format, is it correct?