Comments (7)
Try now. I added a payable modifier to the language and the ABI, though any function that you want to send ether to will need an @payable decorator.
from vyper.
Using the @payable
decorator on the deposit
function on the test contract in this thread still results in the same error as before. Using the latest from the master
branch, though the viper
executable still shows version 0.0.1
. Double checked, and the new version of viper is putting out different bytecode, so I'm sure I'm not just running the old version.
I tried removing the return value from the deposit
function as well, no dice. Let me know if there's more information I can provide.
from vyper.
@mikeshultz Adding @payable
decorator to deposit()
works in the latest. Any further issues with your example?
from vyper.
@fubuloubu You tested the example with @payable
and it worked? My tests failed, but I can try again if you've seen it work. Maybe I missed something on my latest test.
from vyper.
Yeah, just add the decorator above the function definition
from vyper.
@mikeshultz Is the @payable
decorator working for you now?
from vyper.
Yes, sorry about that, I screwed up my ABI. This does indeed work now.
from vyper.
Related Issues (20)
- confusing error message for transitive module uses
- accessing .balance member of a struct leads to compiler panic HOT 1
- imported types cannot be used in call position
- VIP: compile-time parametrizable constants
- constant folding fails for constant exponentiation
- venom produces unneeded stack traffic
- `implements` does not respect public getter of interface type HOT 1
- VIP: rename `_abi_encode` and `_abi_decode` to functions under `ethereum.abi` namespace
- exports: interface does not work for inline interfaces HOT 1
- Loop Iterator Overflow Signed Type HOT 2
- Double Evaluation of Range's Start HOT 1
- Process gets killed when using storage layout override
- Add built-in cryptographic constants (e.g. `secp256k1` curve order) HOT 1
- Silence deprecation warnings if Python `3.12` is used HOT 1
- multiple eval of `sqrt()` argument
- double eval of the slice start/length args
- incorrect topic logging in raw_log for non-literal expressions
- double eval of raw_args in create_from_blueprint HOT 1
- Disallow `optimize` and `evm-version` `pragma`'s in `.vyi` files
- meta: venom IR roadmap HOT 1
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 vyper.