Intro
From solidity to Yul
function getNumer() external pure returns(uint256) {
return 42;
}
// in Yul
function getNumber() external pure returns(uint256) {
uint256 x;
assembly{
x := 42
}
return x;
}Assembly has only 1 type: the 32byte word
Negative Example: String
Psitive Example: String
Last updated