Clickjacking is simple. And it works.
An attacker places an invisible layer over your website/webapp.
You think you're clicking "Confirm."
You just approved a transaction you never saw.
One HTTP header prevents this entirely.
Most builders have never set it.
Volatility.
Panic selling..
P2P arguments...
“Please release coin.”
“Send screenshot.”
All avoidable… if you didn’t have to sell your crypto every time you needed cash.
What if selling wasn’t your only option?
What if you have a platform to access quick cash?
Let's explore @getBusha together! 🧵↓
ContractState
ContractState is a special object representing the onchain storage of a Starknet contract.
It is what connects your code to the actual blockchain State.
It is what gives us access to read and write persistent data that lives on Starknet.
And that's all for now.
Constructor
A constructor is a special function that runs once after a contract has been first deployed.
It basically initialises the contract's state variables.
Example;
fn constructor(ref self: ContractState, initial_value: u128) {
self.count.write(initial_value);
}
Expression
An expression produces a value and can be used inside statements.
It computes and produces a result.
Example:
fn main() {
let x = 5;
let y = x + 10;
}
Here: ( x + 10) is the expression.
That's all for now, stay glued for more.🫡🤗🤗