Skip to main content
added more context
Source Link
Cody Django
  • 271
  • 1
  • 12

I figured out the answer to my own question. Yes, it's possible.

The contract expects only the "object" value of the "bytecode" structure provided by Remix. Currently, when you click to copy the "bytecode" from Remix, you end up with a structure that looks like this:

bytecode = {
  'linkReferences':[],
  'object': '6080604052336000806...',
  'opcodes': 'PUSH1 0x80...',
  'sourcemap': '50:1984:0:-;;;2...'
}

I was passing this whole structure as the bytecode argument, which is wrong. The Contractcontract is expecting only expecting the "object" value to be provided to it as the bytecode argument.

Yes, it's possible.

The contract expects the "object" value of the "bytecode" structure provided by Remix. Currently, when you click to copy the "bytecode" from Remix, you end up with a structure that looks like this:

bytecode = {
  'linkReferences':[],
  'object': '6080604052336000806...',
  'opcodes': 'PUSH1 0x80...',
  'sourcemap': '50:1984:0:-;;;2...'
}

The Contract is expecting only the "object" value to be provided to it as the bytecode argument.

I figured out the answer to my own question. Yes, it's possible.

The contract expects only the "object" value of the "bytecode" structure provided by Remix. Currently, when you click to copy the "bytecode" from Remix, you end up with a structure that looks like this:

bytecode = {
  'linkReferences':[],
  'object': '6080604052336000806...',
  'opcodes': 'PUSH1 0x80...',
  'sourcemap': '50:1984:0:-;;;2...'
}

I was passing this whole structure as the bytecode argument, which is wrong. The contract is only expecting the "object" value.

updated for clarity
Source Link
Cody Django
  • 271
  • 1
  • 12

Yes, it's possible.

The contract expects the "object" value of the "bytecode" structure provided by Remix. Currently, when you click to copy the "bytecode" thatfrom Remix provides is in, you end up with a structure that looks like this:

bytecode = {
  'linkReferences':[],
  'object': '6080604052336000806...',
  'opcodes': 'PUSH1 0x80...',
  'sourcemap': '50:1984:0:-;;;2...'
}

The "bin/bytecode" that the Contract is expecting isonly the "object" value ofto be provided to it as the above structurebytecode argument.

Currently, the "bytecode" that Remix provides is in a structure like this:

{
  'linkReferences':[],
  'object': '6080604052336000806...',
  'opcodes': 'PUSH1 0x80...',
  'sourcemap': '50:1984:0:-;;;2...'
}

The "bin/bytecode" that the Contract is expecting is the "object" value of the above structure.

Yes, it's possible.

The contract expects the "object" value of the "bytecode" structure provided by Remix. Currently, when you click to copy the "bytecode" from Remix, you end up with a structure that looks like this:

bytecode = {
  'linkReferences':[],
  'object': '6080604052336000806...',
  'opcodes': 'PUSH1 0x80...',
  'sourcemap': '50:1984:0:-;;;2...'
}

The Contract is expecting only the "object" value to be provided to it as the bytecode argument.

Source Link
Cody Django
  • 271
  • 1
  • 12

Currently, the "bytecode" that Remix provides is in a structure like this:

{
  'linkReferences':[],
  'object': '6080604052336000806...',
  'opcodes': 'PUSH1 0x80...',
  'sourcemap': '50:1984:0:-;;;2...'
}

The "bin/bytecode" that the Contract is expecting is the "object" value of the above structure.