Comments (5)
Excellent edge case @SergioDemianLerner.
Thanks for the find. We will add this.
from smart-contract-best-practices.
@SergioDemianLerner ...Does it mean if the authentic user tries creating the contract, the already existing one is used or how does the pre-creation affect the new creation? If indeed the attacker's pre-created contract is used and has control over the "contract created" by the real user, does that mean only the attacker would then have access over the contract and it's funds, which would have been updated by the authentic user?
from smart-contract-best-practices.
pre-creating an account (without any code)
@lherbeur an account (no code) is what's pre-created. This advice is even in the case where someone sends ether to an accidental address, which happens to be the address that your new contract would be deployed to.
from smart-contract-best-practices.
Can we create a contract with pre existing balance and it will not refer to the addresse which created it. Annonimize the creator
from smart-contract-best-practices.
and also, will this balance be used by the owner of the contract or it will stay blocked if it came from someone else?
from smart-contract-best-practices.
Related Issues (20)
- Replace rate limiting example HOT 5
- Meta Issue for Gitcoining HOT 5
- dead link: securify HOT 2
- Oracle Manipulation HOT 1
- Update bounties HOT 1
- update bounties
- Ss
- validDestination modifier HOT 3
- Hi
- Speed bump example code is using unrecommended style
- time out. they didn't care about.
- Rate limiting example uses `transfer`.
- Broken links in `README.md`
- Event Monitoring suggests using `transfer()`
- Explain difference between `tx.origin` and `msg.sender`. HOT 1
- Constructor Naming HOT 1
- Explicitly declare state variables HOT 1
- Delete "Insecure Arithmetic" Page? HOT 1
- Update external-calls.md
- Website blocked by Telstra - Australia
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 smart-contract-best-practices.