Giter VIP home page Giter VIP logo

Comments (2)

filippsen avatar filippsen commented on August 28, 2024
  1. Payable function doesn't allow for parameters Start with Hello World project. After changing update function from: function update(string memory newMessage) public { to: function update(string memory newMessage) payable public { Interact shows it as "red", but there is no way to customize the arguments. The input field appears to be for customizing the value (payment) The red buttons always need to contain the value, but they must also include the list of possible arguments when applicable. For another reference: function payme() payable public returns (uint256) { uint256 num = 1; return num; }
    See #122

  2. Payable function doesn't show ether value in transactions
    Welcome addition

  3. Calling with nonnumerical value works
    Indeed incorrect. msg.value is of type uint.

4. It's hard to say in which units is the value Yes. Additionally, it looks like the payment value for red transactions (payable) are not in Wei as they used to. Is it GWei ? Example: unable to send 1000000000000000000 value from Default account. Isn't it Wei ? Missing the unit label. Reference: function payme() payable public returns (uint256) { uint256 num = 1; return num; } We used to have a space at the right side of the input field with the context, tip or units inside parenthesis. Example: `<label_name>: <input_value> ()
See #122

  1. Input allows for negative numbers
    msg.value is of type uint, so it is currently incorrect.

  2. Calling it with high number for example 99999999 prints out in console
    Unable to reproduce by setting value to 99999999. I get the idea, though. Output panel shows an error message as if the account doesn't have enough funds to complete the transaction, so it could be related to do with items #4 and #7 (it is not in Wei ?).


7. Unexpected payment value when retrieving from msg.value uint public num = 0; function payme() payable public returns (uint256) { num = msg.value; return num;} a. Compile and Deploy b. Go to Interact c. Call num (green button). Check 0 d. Call payme (red button) passing 1. e. Call num (green button). Reads 49
See #122

from ethereum-studio.

filippsen avatar filippsen commented on August 28, 2024

Updated original description and comments to reflect changes proposed by request #122.

from ethereum-studio.

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.