Skip to content

Commit

Permalink
chore: rename factory_wnear_address to factory_get_wnear_address
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksuss committed Jul 28, 2023
1 parent fde5459 commit ca6ca43
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion engine-tests/src/tests/xcc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ mod workspace {
.await?;
assert!(result.is_success());

let wnear_address = aurora.factory_wnear_address().await.unwrap().result;
let wnear_address = aurora.factory_get_wnear_address().await.unwrap().result;
assert_eq!(wnear_address, wnear_erc20.0.address);

let approve_tx = wnear_erc20.approve(
Expand Down
2 changes: 1 addition & 1 deletion engine-workspace/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ impl EngineContract {
ViewAccountsCounter::view(&self.contract)
}

pub fn factory_wnear_address(&self) -> ViewFactoryWnearAddress {
pub fn factory_get_wnear_address(&self) -> ViewFactoryWnearAddress {
ViewFactoryWnearAddress::view(&self.contract)
}
}
Expand Down
2 changes: 1 addition & 1 deletion engine-workspace/src/operation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ impl AsRef<str> for View {
View::Erc20FromNep141 => "get_erc20_from_nep141",
View::Nep141FromErc20 => "get_nep141_from_erc20",
View::AccountsCounter => "get_accounts_counter",
View::FactoryWnearAddress => "factory_wnear_address",
View::FactoryWnearAddress => "factory_get_wnear_address",
}
}
}
2 changes: 1 addition & 1 deletion engine/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ mod contract {

/// Returns the address for the `wNEAR` ERC-20 contract in borsh format.
#[no_mangle]
pub extern "C" fn factory_wnear_address() {
pub extern "C" fn factory_get_wnear_address() {
let mut io = Runtime;
let address = aurora_engine_precompiles::xcc::state::get_wnear_address(&io);
let bytes = address.try_to_vec().sdk_expect(errors::ERR_SERIALIZE);
Expand Down

0 comments on commit ca6ca43

Please sign in to comment.