brownie-mix / dao-mix Goto Github PK
View Code? Open in Web Editor NEWA repo for working with and building daos
License: MIT License
A repo for working with and building daos
License: MIT License
When calling def deploy_governor():
we initially deploy the governance token, then the script calls governance_token.delegate(account, {"from": account})
, but we have not called any mint function before; what occurs next is you voting with no weight.
Here is the event I was getting when voting:
OrderedDict([('voter', '0x66aB6D9362d4F35596279692F0251Db635165871'), ('proposalId', 89032801670644786090896159984413409335377199854927541874931809450777628720361), ('support', 1), ('weight', 0), ('reason', 'Cuz I lika do da cha cha')])
Same event after including a mint function:
OrderedDict([('voter', '0x66aB6D9362d4F35596279692F0251Db635165871'), ('proposalId', 25225749521061997514179783119955564126875735072184429625011844126970089268040), ('support', 1), ('weight', 1), ('reason', 'Cuz I lika do da cha cha')])
Followed instruction, got bug
brownie run scripts/governance_standard/deploy_and_run.py
Brownie v1.19.0 - Python development framework for Ethereum
New compatible solc version available: 0.8.14
Compiling contracts...
Solc version: 0.8.14
Optimizer: Enabled Runs: 200
EVM Version: Istanbul
CompilerError: solc returned the following errors:
TypeError: Data locations of parameters have to be the same when overriding non-external functions, but they differ.
--> /Users/tinytaplife/.brownie/packages/OpenZeppelin/[email protected]/contracts/governance/Governor.sol:92:5:
|
92 | function hashProposal(
| ^ (Relevant source part starts here and spans across multiple lines).
Note: Overridden function is here:
--> /Users/tinytaplife/.brownie/packages/OpenZeppelin/[email protected]/contracts/governance/IGovernor.sol:91:5:
|
91 | function hashProposal(
| ^ (Relevant source part starts here and spans across multiple lines).
Dear developer,
Context:
Recently, I tried to use this implementation and deploy it to Polygon(Mumbai) with Infura as the node provider and Brownie.
Related doc for brownie TransactionReceipt.return_value
Problem:
Received error message as
RPCRequestError: Accessing `TransactionReceipt.return_value` on a confirmed transaction requires the `debug_traceTransaction` RPC endpoint, but the node client does not support it or has not made it available.
Question:
proposal_id
as a state so that we can query the Governor contract instead?Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.