Skip to content

Commit

Permalink
Rename param in the ContractId::into() implementation (FuelLabs#76)
Browse files Browse the repository at this point in the history
* fix:rename param

* docs:update comment and link tracking issue

* fixup
  • Loading branch information
nfurfaro committed Mar 11, 2022
1 parent 84143e9 commit e331821
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/contract_id.sw
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ pub struct ContractId {
value: b256,
}

// @todo make this generic when possible
// TODO: make this a generic trait. tracked here: https://github.com/FuelLabs/sway-lib-std/issues/58
pub trait From {
fn from(b: b256) -> Self;
} {
fn into(addr: ContractId) -> b256 {
addr.value
fn into(id: ContractId) -> b256 {
id.value
}
}

Expand Down

0 comments on commit e331821

Please sign in to comment.