0

enter image description hereenter image description hereenter image description hereim trying to deploy smart contract on Myteherwallet but geting an error while deploying byte code of smart contact which is written in solidity remix IDE enter image description here

I have even tried to change the object byte code starting with "0x+ByteCode"but still facing same problem

I have copied the following byte code from remix here is an screenshot and then pasted in MyEther wallet deploy contract option enter image description here

Here is that bytecode which is obtained from remix what changes do i have to done in this before pasting into myetherwallet ?

 {
"linkReferences": {},
"object":"60806040526000805534801561001457600080fd5b5061017e806100246000396000f300608060405260043610610057576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680633e21f3961461005c578063830fb67c146100a7578063d3507d71146100f2575b600080fd5b34801561006857600080fd5b50610091600480360381019080803590602001909291908035906020019092919050505061011d565b6040518082815260200191505060405180910390f35b3480156100b357600080fd5b506100dc6004803603810190808035906020019092919080359060200190929190505050610133565b6040518082815260200191505060405180910390f35b3480156100fe57600080fd5b50610107610149565b6040518082815260200191505060405180910390f35b6000818303600081905550600054905092915050565b6000818301600081905550600054905092915050565b600080549050905600a165627a7a72305820c20829eeb6c860881c3bd114dcee87eae47a4b3ae6b9a29b6432033d3a28b60e0029",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 SSTORE CALLVALUE DUP1 ISZERO PUSH2 0x14 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x17E DUP1 PUSH2 0x24 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN STOP PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH2 0x57 JUMPI PUSH1 0x0 CALLDATALOAD PUSH29 0x100000000000000000000000000000000000000000000000000000000 SWAP1 DIV PUSH4 0xFFFFFFFF AND DUP1 PUSH4 0x3E21F396 EQ PUSH2 0x5C JUMPI DUP1 PUSH4 0x830FB67C EQ PUSH2 0xA7 JUMPI DUP1 PUSH4 0xD3507D71 EQ PUSH2 0xF2 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x68 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x91 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 DUP1 DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP1 SWAP3 SWAP2 SWAP1 DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP1 SWAP3 SWAP2 SWAP1 POP POP POP PUSH2 0x11D JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP3 DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0xB3 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0xDC PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 DUP1 DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP1 SWAP3 SWAP2 SWAP1 DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP1 SWAP3 SWAP2 SWAP1 POP POP POP PUSH2 0x133 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP3 DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0xFE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x107 PUSH2 0x149 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 DUP3 DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x0 DUP2 DUP4 SUB PUSH1 0x0 DUP2 SWAP1 SSTORE POP PUSH1 0x0 SLOAD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 DUP4 ADD PUSH1 0x0 DUP2 SWAP1 SSTORE POP PUSH1 0x0 SLOAD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD SWAP1 POP SWAP1 JUMP STOP LOG1 PUSH6 0x627A7A723058 KECCAK256 0xc2 ADDMOD 0x29 0xee 0xb6 0xc8 PUSH1 0x88 SHR EXTCODESIZE 0xd1 EQ 0xdc 0xee DUP8 0xea 0xe4 PUSH27 0x4B3AE6B9A29B6432033D3A28B60E00290000000000000000000000 ",
"sourceMap": "27:399:0:-;;;74:1;50:25;;27:399;8:9:-1;5:2;;;30:1;27;20:12;5:2;27:399:0;;;;;;;"

}

after taking object string part for hex value ,error is not generating but next step is also not showing which should be of signed transaction

  • And where supposed to guess all the details relevant to this operation (your input, to begin with)??? – goodvibration Oct 9 at 6:40
  • Well, the error message tells you that this is an invalid bytecode. And it is! What you've entered here is a list of assembly opcodes (your disassembled contract I would presume?). The bytecode is an hex string which should be available to you in the output bin file that your compiler has generated for you. – goodvibration Oct 9 at 6:57
  • I have copied the byte code from remix ide after compilation of my solidity code and then pasted in MyEther wallet deploy contract option – Aniket Oct 9 at 7:06
  • Get read of the "object": part, and then from the " at the beginning and end of the remaining string. – goodvibration Oct 9 at 7:15
  • Did not get you – Aniket Oct 9 at 7:22
0

You can deploy directly from Remix with MetaMask. Go to the "Deploy & Run Transactions" tab, set the Environment to "Injected Web3" to use MetaMask, and deploy your contract there. Make sure you're connected to the right network in MetaMask when doing so.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.