Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: typos in the docs #11

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions layerzero-common/sources/packet.move
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module layerzero_common::packet {
use layerzero_common::serde;
use layerzero_common::utils::vector_slice;

// basic packet structure for a data packet {channel_id, nocne and payload}
// basic packet structure for a data packet {channel_id, nonce and payload}
struct Packet has drop, key, store, copy {
src_chain_id: u64, // u16
src_address: vector<u8>,
Expand Down Expand Up @@ -170,4 +170,4 @@ module layerzero_common::packet {
let decoded_pk = decode_packet(&encoded, 6);
assert!(packet == decoded_pk, 1);
}
}
}
4 changes: 2 additions & 2 deletions layerzero/sources/admin.move
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// managing layerzero admin priviledges.
// managing layerzero admin privileges.
// can transfer the admin account to new multi-sig or resources accounts
module layerzero::admin {
use std::error;
Expand Down Expand Up @@ -75,4 +75,4 @@ module layerzero::admin {

assert_config_admin(lz);
}
}
}
4 changes: 2 additions & 2 deletions layerzero/sources/app/lzapp/remote.move
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/// where the app only wants to send msg to and receive msg from.
/// It only supports that there is only one trusted remote address on each chain.
///
/// Remote is saparated from the lzApp because lzApp might have multiple remotes
/// Remote is separated from the lzApp because lzApp might have multiple remotes
module layerzero::remote {
use std::error;
use aptos_std::table::{Self, Table};
Expand Down Expand Up @@ -63,4 +63,4 @@ module layerzero::remote {
let expected = get(ua_address, chain_id);
assert!(expected == remote_addr, error::invalid_argument(ELZAPP_INVALID_REMOTE));
}
}
}
4 changes: 2 additions & 2 deletions layerzero/sources/app/test_helpers.move
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ module layerzero::test_helpers {
// init modules first as if we deployed
msglib_config::init_module_for_test(lz);
bulletin::init_module_for_test(lz);
// msgliv v1
// msglib v1
uln_config::init_module_for_test(lz);
msglib_v1_0::init_module_for_test(lz);

Expand All @@ -111,4 +111,4 @@ module layerzero::test_helpers {
// init and register msglib
uln_receive::init(lz);
}
}
}
6 changes: 3 additions & 3 deletions layerzero/sources/endpoint.move
Original file line number Diff line number Diff line change
Expand Up @@ -271,13 +271,13 @@ module layerzero::endpoint {
let version = msglib_cap::receive_version(cap);
msglib_config::assert_receive_msglib(ua_address, src_chain_id, version);

// assert the packet is targetting at the UA
// assert the packet is targeting at the UA
assert!(
packet::dst_address(&packet) == bcs::to_bytes(&ua_address),
error::invalid_argument(ELAYERZERO_INVALID_DST_ADDRESS),
);

// assert the packet is targetting at this chain
// assert the packet is targeting at this chain
assert!(
packet::dst_chain_id(&packet) == get_local_chain_id(),
error::invalid_argument(ELAYERZERO_INVALID_CHAIN_ID)
Expand Down Expand Up @@ -429,4 +429,4 @@ module layerzero::endpoint {
let cap = register_ua<ExampleType2>(lz);
destroy_ua_cap(cap);
}
}
}
4 changes: 2 additions & 2 deletions layerzero/sources/msglib-v1/v1-0/uln_config.move
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ module layerzero::uln_config {
};

if (table::contains(&ua_config_store.config, key)) {
// ua has initialize the configuration
// ua has initialized the configuration
let ua_config = table::borrow(&ua_config_store.config, key);
merge(ua_config, default_config)
} else {
Expand Down Expand Up @@ -334,4 +334,4 @@ module layerzero::uln_config {
assert!(uln_config.relayer == new_relayer, 0);
assert!(uln_config.outbound_confirmations == new_outbound_confirmations, 0);
}
}
}
2 changes: 1 addition & 1 deletion sdk/src/modules/uln/uln_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export class UlnConfig {
}
}

// address type in move are reutrned as short string
// address type in move are returned as short string
mergedConfig.oracle = fullAddress(mergedConfig.oracle).toString()
mergedConfig.relayer = fullAddress(mergedConfig.relayer).toString()
mergedConfig.inbound_confirmations = BigInt(mergedConfig.inbound_confirmations)
Expand Down