Skip to content

Commit

Permalink
typo fix and refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
gitofdeepanshu committed Oct 1, 2023
1 parent f074988 commit 379ea27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions precompiles/utils/src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,6 @@ impl<'a> EvmDataReader<'a> {
})
}

/// Return Option<&[u8]> from a given range for EvmDataReader
pub fn get_input_from_range(&self, range: Range<usize>) -> Option<&[u8]> {
self.input.get(range)
}

/// Read remaining bytes
pub fn read_till_end(&mut self) -> EvmResult<&[u8]> {
let range = self.move_cursor(self.input.len() - self.cursor)?;
Expand All @@ -195,7 +190,7 @@ impl<'a> EvmDataReader<'a> {
/// Move the reading cursor with provided length, and return a range from the previous cursor
/// location to the new one.
/// Checks cursor overflows.
pub fn move_cursor(&mut self, len: usize) -> EvmResult<Range<usize>> {
fn move_cursor(&mut self, len: usize) -> EvmResult<Range<usize>> {
let start = self.cursor;
let end = self
.cursor
Expand Down
2 changes: 1 addition & 1 deletion precompiles/xcm/XCM_v2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ interface XCM {
/**
* @dev Execute a transaction on a remote chain.
* @param destination - Multilocation of destination chain
* @param payment_asset_id - ETH address of the local asset derivate used to pay for execution in the destination chain
* @param payment_asset_id - Address of the local asset derivate used to pay for execution in the destination chain
* @param payment_amount - amount of payment asset to use for execution payment - should cover cost of XCM instructions + Transact call weight.
* @param call - encoded call data (must be decodable by remote chain)
* @param transact_weight - max weight that the encoded call is allowed to consume in the destination chain
Expand Down

0 comments on commit 379ea27

Please sign in to comment.