In my forc.toml:
[dependencies]
fuels = { version = "0.36", features = ["fuel-core-lib"] }
...
[[test]]
...
[constants]
token_b256 = { type = "b256", value = "0x0101010101010101010101010101010101010101010101010101010101010101" }
inception_period = { type = "u64", value = "42" }
Sway program:
contract
....
impl LockUp for Contract {
#[payable, storage(read,write)]
fn lock_up(user: Identity) {
require(msg_asset_id() == ContractId::from(token_b256), Error::IncorrectToken);
...
}
}
When I do forc build
it says token_b256 does not exist in this scope