Comments (1)
Actually, verifyContractUpgrade can only be called by the contract to be upgraded, and the upgrade logic ensures that a proposal will only be "verified" once.
If a non-contract address calls verifyContractUpgrade, it will only get a "not found upgrade proposal" reject.
For the contract, its purpose is to verify that the upgrade is executable, the contract doesn't care what the function does internally, I think the naming indicates what the function can do from the user's point of view.
This function also does not have the problem of repeatedly validation, since it cannot provide a proposal id that has already been approved.
from sourcedao.
Related Issues (5)
- Contract Upgrade Does Not Consider the Scenario of Committee Members Losing Their Private Keys HOT 1
- Need for Sequential Consistency in Contract Upgrade Proposals to Prevent Potential Concurrency Issues HOT 1
- Include _proposalId in root_merklehash for _propose Function Body: HOT 1
- Security Improvements for proposal contracts HOT 2
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 sourcedao.