Skip to content

Commit 92b4e6e

Browse files
committed
fixed dst model for raw message
1 parent 112279a commit 92b4e6e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/models.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -464,12 +464,7 @@ pub fn make_raw_message(raw: ton_types::Cell) -> JsRawMessage {
464464
ton_block::CommonMsgInfo::ExtOutMsgInfo(header) => {
465465
let dst = match header.dst.clone() {
466466
MsgAddressExt::AddrNone => None,
467-
MsgAddressExt::AddrExtern(addr) => Some(
468-
addr.external_address
469-
.as_hex_string()
470-
.drain(..addr.len.as_u32() as usize)
471-
.collect(),
472-
),
467+
MsgAddressExt::AddrExtern(addr) => Some(addr.external_address.as_hex_string()),
473468
};
474469
MessageCommon {
475470
src: match &header.src {

0 commit comments

Comments
 (0)