Skip to content

Commit 06b2df5

Browse files
committed
floating
1 parent bb53182 commit 06b2df5

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

runtime-sdk/src/dispatcher.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ impl<R: Runtime> Dispatcher<R> {
362362
R::Modules::execute_in_msg(ctx, in_msg, data, tx)?;
363363
if let Some(tx) = tx {
364364
let tx_size = match data
365-
.ut
365+
.tx
366366
.as_ref()
367367
.unwrap_or_else(|| panic!("incoming message {} has tx but no ut", in_msg.id))
368368
.len()
@@ -561,7 +561,7 @@ impl<R: Runtime + Send + Sync> transaction::dispatcher::Dispatcher for Dispatche
561561
warn!(ctx.get_logger("dispatcher"), "incoming message data malformed"; "id" => in_msg.id, "err" => ?err);
562562
IncomingMessageData::noop()
563563
});
564-
let tx = data.ut.as_ref().and_then(|ut| Self::decode_tx(ctx, ut).map_err(|err| {
564+
let tx = data.tx.as_ref().and_then(|tx| Self::decode_tx(ctx, tx).map_err(|err| {
565565
warn!(ctx.get_logger("dispatcher"), "incoming message transaction malformed"; "id" => in_msg.id, "err" => ?err);
566566
}).ok());
567567
if prefetch_enabled {
@@ -629,9 +629,9 @@ impl<R: Runtime + Send + Sync> transaction::dispatcher::Dispatcher for Dispatche
629629
warn!(ctx.get_logger("dispatcher"), "incoming message data malformed"; "id" => in_msg.id, "err" => ?err);
630630
IncomingMessageData::noop()
631631
});
632-
let tx = match data.ut.as_ref() {
633-
Some(ut) => {
634-
match Self::decode_tx(ctx, ut) {
632+
let tx = match data.tx.as_ref() {
633+
Some(tx) => {
634+
match Self::decode_tx(ctx, tx) {
635635
Ok(tx) => {
636636
let remaining_gas = R::Core::remaining_in_msgs_gas(ctx);
637637
if remaining_gas < cfg.min_remaining_gas {

runtime-sdk/src/types/in_msg.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ pub enum Error {
1717
pub struct IncomingMessageData {
1818
#[cbor(rename = "v")]
1919
pub version: u16,
20-
/// An embedded transaction (UnverifiedTransaction).
20+
/// An embedded transaction (UnverifiedTransaction in runtimes using this SDK).
2121
/// The transaction doesn't need to be from the same account that sent the message.
22-
pub ut: Option<Vec<u8>>,
22+
pub tx: Option<Vec<u8>>,
2323
}
2424

2525
impl IncomingMessageData {
2626
pub fn noop() -> Self {
2727
Self {
2828
version: LATEST_INCOMING_MESSAGE_VERSION,
29-
ut: None,
29+
tx: None,
3030
}
3131
}
3232

0 commit comments

Comments
 (0)