Skip to main content
improve wording
Source Link

I have a simple hello world contract, compiled with Vyper. I use Web3j CLI to make a Java wrapper class from the contract's abi and bin files. When I deploy it, I get a stack underflow error.

  • I know the Vyper contract works, because I successfully deployed it with Truffle.
  • I know my Web3j project is okay, because it can successfully deploy a Solidity hello world contract.

QUESTION: Why can'twon't Web3j deploy a simple Vyper contract?


The Ganache Error: {"error":"stack underflow","program_counter":1,"return":"0x"}

Vyper compile commands:

vyper -f abi -o hello.abi hello.vy
vyper -f bytecode -o hello.bin hello.vy

Versions:

  • Ganache CLI v6.12.2 (ganache-core: 2.13.2)
  • Web3j 4.9.6
  • Vyper 0.3.7

Let me know if you want any other details. Thanks

I have a simple hello world contract, compiled with Vyper. I use Web3j CLI to make a Java wrapper class from the contract's abi and bin files. When I deploy it, I get a stack underflow error.

  • I know the Vyper contract works, because I successfully deployed it with Truffle.
  • I know my Web3j project is okay, because it can successfully deploy a Solidity hello world contract.

QUESTION: Why can't Web3j deploy a simple Vyper contract?


The Ganache Error: {"error":"stack underflow","program_counter":1,"return":"0x"}

Vyper compile commands:

vyper -f abi -o hello.abi hello.vy
vyper -f bytecode -o hello.bin hello.vy

Versions:

  • Ganache CLI v6.12.2 (ganache-core: 2.13.2)
  • Web3j 4.9.6
  • Vyper 0.3.7

Let me know if you want any other details. Thanks

I have a simple hello world contract, compiled with Vyper. I use Web3j CLI to make a Java wrapper class from the contract's abi and bin files. When I deploy it, I get a stack underflow error.

  • I know the Vyper contract works, because I successfully deployed it with Truffle.
  • I know my Web3j project is okay, because it can successfully deploy a Solidity hello world contract.

QUESTION: Why won't Web3j deploy a simple Vyper contract?


The Ganache Error: {"error":"stack underflow","program_counter":1,"return":"0x"}

Vyper compile commands:

vyper -f abi -o hello.abi hello.vy
vyper -f bytecode -o hello.bin hello.vy

Versions:

  • Ganache CLI v6.12.2 (ganache-core: 2.13.2)
  • Web3j 4.9.6
  • Vyper 0.3.7
remove less relevant parts of question details
Source Link

I have a simple hello worldhello world contract, compiled with Vyper. I use Web3j CLI to make a Java wrapper class from the contract's generated abi and bin files. When I deploy it, I get a stack underflowstack underflow error.

Things I tried to fix problem (none worked):

  • Used both Vyper's bytecode_runtime and bytecode formats.
  • Used the binary string with and without the "0x" prefix.

Things I tried to pinpoint the cause.

  • Successfully deployedI know the Vyper contract works, because I successfully deployed it with Truffle.
  • Successfully deployed a Solidity version of the contract fromI know my Web3j project is okay, because it can successfully deploy a Solidity hello world contract.

QUESTION: Why can't IWeb3j deploy a simple hello world Vyper contract with Web3j?


The Ganache Error: {"error":"stack underflow","program_counter":1,"return":"0x"}

Vyper compile commands:

vyper -f abi -o hello.abi hello.vy
vyper -f bytecode -o hello.bin hello.vy

Versions:

  • Ganache CLI v6.12.2 (ganache-core: 2.13.2)
  • Web3j 4.9.6
  • Vyper 0.3.7

Let me know if you want any other details. Thanks

I have a simple hello world contract compiled with Vyper. I use Web3j CLI to make a Java wrapper class from the contract's generated abi and bin files. When I deploy it, I get a stack underflow error.

Things I tried to fix problem (none worked):

  • Used both Vyper's bytecode_runtime and bytecode formats.
  • Used the binary string with and without the "0x" prefix.

Things I tried to pinpoint the cause.

  • Successfully deployed the Vyper contract with Truffle.
  • Successfully deployed a Solidity version of the contract from my Web3j project.

QUESTION: Why can't I deploy a simple hello world Vyper contract with Web3j?


The Ganache Error: {"error":"stack underflow","program_counter":1,"return":"0x"}

Vyper compile commands:

vyper -f abi -o hello.abi hello.vy
vyper -f bytecode -o hello.bin hello.vy

Versions:

  • Ganache CLI v6.12.2 (ganache-core: 2.13.2)
  • Web3j 4.9.6
  • Vyper 0.3.7

Let me know if you want any other details. Thanks

I have a simple hello world contract, compiled with Vyper. I use Web3j CLI to make a Java wrapper class from the contract's abi and bin files. When I deploy it, I get a stack underflow error.

  • I know the Vyper contract works, because I successfully deployed it with Truffle.
  • I know my Web3j project is okay, because it can successfully deploy a Solidity hello world contract.

QUESTION: Why can't Web3j deploy a simple Vyper contract?


The Ganache Error: {"error":"stack underflow","program_counter":1,"return":"0x"}

Vyper compile commands:

vyper -f abi -o hello.abi hello.vy
vyper -f bytecode -o hello.bin hello.vy

Versions:

  • Ganache CLI v6.12.2 (ganache-core: 2.13.2)
  • Web3j 4.9.6
  • Vyper 0.3.7

Let me know if you want any other details. Thanks

Source Link

Web3j fails to deploy simple Vyper Contract to Ganache

I have a simple hello world contract compiled with Vyper. I use Web3j CLI to make a Java wrapper class from the contract's generated abi and bin files. When I deploy it, I get a stack underflow error.

Things I tried to fix problem (none worked):

  • Used both Vyper's bytecode_runtime and bytecode formats.
  • Used the binary string with and without the "0x" prefix.

Things I tried to pinpoint the cause.

  • Successfully deployed the Vyper contract with Truffle.
  • Successfully deployed a Solidity version of the contract from my Web3j project.

QUESTION: Why can't I deploy a simple hello world Vyper contract with Web3j?


The Ganache Error: {"error":"stack underflow","program_counter":1,"return":"0x"}

Vyper compile commands:

vyper -f abi -o hello.abi hello.vy
vyper -f bytecode -o hello.bin hello.vy

Versions:

  • Ganache CLI v6.12.2 (ganache-core: 2.13.2)
  • Web3j 4.9.6
  • Vyper 0.3.7

Let me know if you want any other details. Thanks