Skip to content

Commit

Permalink
Fix derive wallet address for jetton mintless tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
pashinov committed Dec 17, 2024
1 parent a5ba0fd commit f4429c4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nekoton-abi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ton_abi = { git = "https://github.com/broxus/ton-labs-abi" }
ton_block = { git = "https://github.com/broxus/ton-labs-block.git" }
ton_executor = { git = "https://github.com/broxus/ton-labs-executor.git" }
ton_types = { git = "https://github.com/broxus/ton-labs-types.git" }
ton_vm = { git = "https://github.com/broxus/ton-labs-vm.git" }
ton_vm = { git = "https://github.com/broxus/ton-labs-vm.git", branch = "feature/jetton" }

nekoton-derive = { path = "../nekoton-derive", optional = true }
nekoton-utils = { path = "../nekoton-utils" }
Expand Down
13 changes: 13 additions & 0 deletions nekoton-contracts/src/jetton/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,19 @@ mod tests {
let details = contract.get_details()?;
assert_eq!(details.admin_address, MsgAddressInt::default());

let owner = nekoton_utils::unpack_std_smc_addr(
"UQA8aeJrWO-5DZ-1Zs2juDYfT4V_ud2KY8gegMd33gHjeUaF",
true,
)?;

let address = contract.get_wallet_address(&owner)?;
assert_eq!(
address,
MsgAddressInt::from_str(
"0:3d97d11909a20de878c4400ed241a714065d3a0f4d4f0d60ecaf0dbe11cdd1bc"
)?
);

Ok(())
}
}

0 comments on commit f4429c4

Please sign in to comment.