Git Product home page Git Product logo

Comments (12)

xaviarias avatar xaviarias commented on July 19, 2024

In the Stack Exchange example the function is giving the error because is not a view.

Not sure about it but Solidity 0.6.9 but must have a way to mark balanceOf as a view that has changed from prior versions.

Could you attach the generated ABI files?

from web3j-maven-plugin.

chrismcgregor avatar chrismcgregor commented on July 19, 2024

ABI: Abi.txt

Take a look at ERC20BalanceOf() which has a view attribute on the function.

from web3j-maven-plugin.

joaquin-alfaro avatar joaquin-alfaro commented on July 19, 2024

From solidity 0.6 the property constant included in the ABI has been replaced by the value of stateMutability

The version 4.5.11 of web3j-maven-plugin uses the value of constant to determine if a function is a view

You can wait to the version 4.5.18 of web3j-maven-plugin which probably will solve the problem or make a fork of web3j-maven-plugin and update the version of web3j in pom.xml to 4.5.18
Replace
<web3j.version>4.5.11</web3j.version>
With
<web3j.version>4.5.18</web3j.version>

from web3j-maven-plugin.

chrismcgregor avatar chrismcgregor commented on July 19, 2024

from web3j-maven-plugin.

chrismcgregor avatar chrismcgregor commented on July 19, 2024

When do you guys plan to release 4.5.18?

from web3j-maven-plugin.

xaviarias avatar xaviarias commented on July 19, 2024

Hi, we just released v4.6.4, can I close this issue?

from web3j-maven-plugin.

chrismcgregor avatar chrismcgregor commented on July 19, 2024

from web3j-maven-plugin.

xaviarias avatar xaviarias commented on July 19, 2024

Absolutely, thank you! Also, do you know how to generate an Ethereum address from a xpub (extended public key) using Web3j?

final String address = org.web3j.crypto.Keys.getAddress("<public key>")

from web3j-maven-plugin.

chrismcgregor avatar chrismcgregor commented on July 19, 2024

from web3j-maven-plugin.

chrismcgregor avatar chrismcgregor commented on July 19, 2024

from web3j-maven-plugin.

xaviarias avatar xaviarias commented on July 19, 2024

I guess my question is that does Keys.getAddress() support BIP32 or other standards?

Not sure about that, have you tried it? @josh-richardson may have a better answer.

from web3j-maven-plugin.

chrismcgregor avatar chrismcgregor commented on July 19, 2024

from web3j-maven-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.