Privacy preferences

Choose separately whether we may use analytics and advertising measurement. Both stay off unless you turn them on. You can change these choices any time.

All challenges

Challenge 3

Gas-Optimized Storage

GasGas optimization

Challenge

The company name and tagline never change. What is the most gas-efficient way to store these values?

Starter code

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract Company {
  string public companyName = "FutureTech";
  string public tagline = "Innovating the Decentralized World!";
}
Show hint

Think about how Solidity handles values that never change.