cosmwasm: fix typo
This commit is contained in:
parent
9620fca895
commit
68926aa4dc
|
@ -11,8 +11,8 @@ pub struct DeliveryInstruction {
|
|||
pub target_chain: u16,
|
||||
pub target_address: [u8; 32],
|
||||
pub payload: Vec<u8>,
|
||||
pub requested_reciever_value: [u8; 32],
|
||||
pub extra_reciever_value: [u8; 32],
|
||||
pub requested_receiver_value: [u8; 32],
|
||||
pub extra_receiver_value: [u8; 32],
|
||||
pub encoded_execution_info: Vec<u8>,
|
||||
pub refund_chain_id: u16,
|
||||
pub refund_address: [u8; 32],
|
||||
|
@ -50,11 +50,11 @@ impl DeliveryInstruction {
|
|||
let mut payload = vec![0u8; payload_len.try_into().unwrap()];
|
||||
rdr.read_exact(&mut payload)?;
|
||||
|
||||
let mut requested_reciever_value = [0u8; 32];
|
||||
rdr.read_exact(&mut requested_reciever_value)?;
|
||||
let mut requested_receiver_value = [0u8; 32];
|
||||
rdr.read_exact(&mut requested_receiver_value)?;
|
||||
|
||||
let mut extra_reciever_value = [0u8; 32];
|
||||
rdr.read_exact(&mut extra_reciever_value)?;
|
||||
let mut extra_receiver_value = [0u8; 32];
|
||||
rdr.read_exact(&mut extra_receiver_value)?;
|
||||
|
||||
let encoded_execution_info_len = rdr.read_u32::<BigEndian>()?;
|
||||
let mut encoded_execution_info = vec![0u8; encoded_execution_info_len.try_into().unwrap()];
|
||||
|
@ -92,8 +92,8 @@ impl DeliveryInstruction {
|
|||
target_chain,
|
||||
target_address,
|
||||
payload,
|
||||
requested_reciever_value,
|
||||
extra_reciever_value,
|
||||
requested_receiver_value,
|
||||
extra_receiver_value,
|
||||
encoded_execution_info,
|
||||
refund_chain_id,
|
||||
refund_address,
|
||||
|
@ -206,12 +206,12 @@ mod test {
|
|||
0xc6, 0xcf, 0xc0, 0x7a, 0x7d, 0x38, 0x75, 0x62, 0x80, 0xa1, 0x0e, 0x29, 0x5a,
|
||||
0xd7, 0x27, 0x12,
|
||||
],
|
||||
requested_reciever_value: [
|
||||
requested_receiver_value: [
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
],
|
||||
extra_reciever_value: [
|
||||
extra_receiver_value: [
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
|
|
|
@ -162,7 +162,7 @@ pub fn ibc_packet_ack(
|
|||
))
|
||||
}
|
||||
|
||||
/// 6. Timing out a packet. Called when the packet was not recieved on the other chain before the timeout.
|
||||
/// 6. Timing out a packet. Called when the packet was not received on the other chain before the timeout.
|
||||
/// Never should be called as this contract never sends packets
|
||||
#[cfg_attr(not(feature = "library"), entry_point)]
|
||||
pub fn ibc_packet_timeout(
|
||||
|
|
|
@ -93,7 +93,7 @@ pub fn ibc_packet_ack(
|
|||
Ok(IbcBasicResponse::new().add_attribute("action", "ibc_packet_ack"))
|
||||
}
|
||||
|
||||
/// 6. Timing out a packet. Called when the packet was not recieved on the other chain before the timeout.
|
||||
/// 6. Timing out a packet. Called when the packet was not received on the other chain before the timeout.
|
||||
#[cfg_attr(not(feature = "library"), entry_point)]
|
||||
pub fn ibc_packet_timeout(
|
||||
_deps: DepsMut,
|
||||
|
|
|
@ -109,7 +109,7 @@ const TO_TB_17_VAA =
|
|||
> should mint bridged assets wrappers on transfer from another chain and handle fees correctly
|
||||
> should handle additional data on token bridge transfer with payload in single transaction when feeRecipient == transferRecipient
|
||||
> should not allow a redemption from msg.sender other than 'to' on token bridge transfer with payload
|
||||
> should allow a redemption from msg.sender == 'to' on token bridge transfer with payload and check that sender recieves fee
|
||||
> should allow a redemption from msg.sender == 'to' on token bridge transfer with payload and check that sender receives fee
|
||||
> should burn bridged assets wrappers on transfer to another chain
|
||||
> should handle ETH deposits correctly (uluna)
|
||||
> should handle ETH withdrawals and fees correctly (uluna)
|
||||
|
|
|
@ -493,7 +493,7 @@ mod tests {
|
|||
validate_transfer(deps.as_ref(), &tx).unwrap();
|
||||
commit_transfer(deps.as_mut(), tx.clone()).unwrap();
|
||||
|
||||
// Since we transfered within the same chain, the balance should be 0.
|
||||
// Since we transferred within the same chain, the balance should be 0.
|
||||
let src = account::Key::new(
|
||||
tx.key.emitter_chain(),
|
||||
tx.data.token_chain,
|
||||
|
|
Loading…
Reference in New Issue