Comments (2)
-
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 -
Payable function doesn't show ether value in transactions
Welcome addition -
Calling with nonnumerical value works
Indeed incorrect.msg.value
is of typeuint
.
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
-
Input allows for negative numbers
msg.value
is of typeuint
, so it is currently incorrect. -
Calling it with high number for example 99999999 prints out in console
Unable to reproduce by setting value to99999999
. 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.
Updated original description and comments to reflect changes proposed by request #122.
from ethereum-studio.
Related Issues (20)
- Add support for JS frameworks HOT 2
- Update to latest version of Solidity HOT 5
- Add ability to configure the Solidity compiler
- Revamp "CryptoPizza" template
- Update code style on READMES
- Provide "light" IDE theme option
- Use modern JS in app.js of project templates HOT 4
- Auto-expand contracts in the Interact panel HOT 1
- Update "template" terminology? HOT 3
- Refresh Help Center HOT 2
- Add event tracking HOT 2
- Bug: ran out of ETH after a few transactions HOT 1
- Bug: transaction arguments
- Bug: Coin "mint" function hangs if not triggered by owner HOT 1
- studio is a missing distribution. HOT 1
- UI problem in latest production build HOT 6
- Revamp "Empty project" template HOT 1
- Add Vyper HOT 2
- Change CyptoPizza.sol isUnique modifier to O(1) complexity HOT 1
- studio.ethereum.org should stop using window.web3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ethereum-studio.