Skip to content

Commit

Permalink
FuelLabs#2219 - get_coins_owner() renamed to coins_owner() (FuelLabs#…
Browse files Browse the repository at this point in the history
  • Loading branch information
r-sitko authored Jul 5, 2022
1 parent 8592e50 commit b1e48d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sway-lib-std/src/chain/auth.sw
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub fn caller_contract_id() -> ContractId {
/// Returns a `Result::Ok(Identity)`, or `Result::Err(AuthError)` if an identity cannot be determined.
pub fn msg_sender() -> Result<Identity, AuthError> {
if caller_is_external() {
get_coins_owner()
coins_owner()
} else {
// Get caller's `ContractId`.
Result::Ok(Identity::ContractId(caller_contract_id()))
Expand All @@ -46,7 +46,7 @@ pub fn msg_sender() -> Result<Identity, AuthError> {

/// Get the owner of the inputs (of type `InputCoin`) to a TransactionScript,
/// if they all share the same owner.
fn get_coins_owner() -> Result<Identity, AuthError> {
fn coins_owner() -> Result<Identity, AuthError> {
let target_input_type = 0u8;
let inputs_count = tx_inputs_count();

Expand Down

0 comments on commit b1e48d1

Please sign in to comment.