Questions tagged [immutable]

The immutable keyword can be used on state variables which causes them to be read-only, but assignable in the constructor. The value will be stored directly in the code.

Filter by
Sorted by
Tagged with
1
vote
1answer
28 views

Cannot reproduce Etherscan verified compilation for 0.6.6 contract

I'm trying to reproduce the following contract compilation on Etherscan: https://etherscan.io/address/0x7a250d5630b4cf539739df2c5dacb4c659f2488d#code. Runtime bytecode on-chain I can get the runtime ...
0
votes
1answer
24 views

Is Ethereum blockchain really temper proof or immutable?

Suppose there is a user A which transfers some ethers to user B through a proper transaction. So is it possible to alter the transaction. Something like going back to the block which contains the ...
1
vote
1answer
34 views

What is the best way to store data/information while writing smartcontract?

Smart contracts are immutable. Unless we're 100% sure that our smart-contract is fully functional without any exception we never want to push that in the main net. That's why we have public test net. ...
0
votes
1answer
30 views

Is it feasible to write a DApp that targets multiple blockchains

This question does not target Ethereum specifically, but I hope you can help me out! If my questions are too specific, I apologize in advance. I'm trying to utilize Blockchain's immutable + provable ...
1
vote
1answer
105 views

What is the difference between the constant and immutable keywords in Solidity?

What is the difference between the constant and immutable keywords in Solidity and how do I use them?
2
votes
1answer
334 views

What is the immutable keyword in Solidity?

What is the immutable keyword in Solidity and how do I use it?