-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Implement the GM opcode #340
Conversation
e00c2e0
to
d3e9c85
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
68f44ea
to
d3e9c85
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -4,8 +4,8 @@ use serde::{Deserialize, Serialize}; | |||
use std::path::{Path, PathBuf}; | |||
use std::{io, iter, slice}; | |||
|
|||
pub type Id = [u8; Bytes32::size_of()]; | |||
pub type Contract = [u8; ContractId::size_of()]; | |||
pub type Id = [u8; Bytes32::LEN]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why we don't use the raw types if they can just be represented as &[u8]
via https://github.com/FuelLabs/fuel-types/blob/565ac6a25343e487faf10c13c42fb5168f92b087/src/types.rs#L130-L134
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not know, was just updating for the api. @leviathanbeak any word on why these types are like this?
Add the GM opcode to the Sway language, as per the new specs.
Closes #339
This PR also updates
sway
to the latestfuel-asm
with the latest op mapping and fixes the corresponding contract addresses.