FuelLabs / sway

🌴 Empowering everyone to build reliable and efficient smart contracts.
https://docs.fuel.network/docs/sway/
Apache License 2.0
62.78k stars 5.35k forks source link

Asset denomination abbreviations #5033

Open Braqzen opened 1 year ago

Braqzen commented 1 year ago

In solidity you have

uint256 amount0 = 1 ether;
uint256 amount1 = 1e18;
amount == amount1; // true

It would be nice to have aliases or keywords which allow us to easily specify an amount without having to write multiple 0s.

Braqzen commented 1 year ago

Unsure if std label via aliases or language feature label. Either way, would need to figure out names internally.