Skip to content

Commit

Permalink
Merge pull request #239 from keepkey/bep2-rune
Browse files Browse the repository at this point in the history
Adds BEP-2 support for Binance Chain
  • Loading branch information
mvpratt authored Dec 1, 2020
2 parents a988325 + 0f2917e commit fb531bf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @keepkeyjon @markrypto
* @markrypto
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.7.2)

project(KeepKeyFirmware

VERSION 6.5.1
VERSION 6.6.0

LANGUAGES C CXX ASM)

Expand Down
2 changes: 1 addition & 1 deletion deps/python-keepkey
8 changes: 4 additions & 4 deletions lib/firmware/fsm_msg_binance.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ void fsm_msgBinanceTransferMsg(const BinanceTransferMsg *msg) {
CHECK_PARAM(msg->outputs[0].coins_count == 1, "Malformed BinanceTransferMsg")
CHECK_PARAM(msg->inputs[0].coins[0].amount == msg->outputs[0].coins[0].amount,
"Malformed BinanceTransferMsg")
CHECK_PARAM(strcmp(msg->inputs[0].coins[0].denom, "BNB") == 0,
"Other BNB tokens not yet supported")
CHECK_PARAM(strcmp(msg->inputs[0].coins[0].denom,
msg->outputs[0].coins[0].denom) == 0,
"Malformed BinanceTransferMsg")
Expand Down Expand Up @@ -136,8 +134,10 @@ void fsm_msgBinanceTransferMsg(const BinanceTransferMsg *msg) {
}
case OutputAddressType_TRANSFER:
default: {
char amount_str[32];
bn_format_uint64(msg->outputs[0].coins[0].amount, NULL, " BNB", 8, 0,
char amount_str[42];
char denom_str[14];
snprintf(denom_str, strlen(msg->outputs[0].coins[0].denom) + 2, " %s", msg->outputs[0].coins[0].denom);
bn_format_uint64(msg->outputs[0].coins[0].amount, NULL, denom_str, 8, 0,
false, amount_str, sizeof(amount_str));
if (!confirm_transaction_output(
ButtonRequestType_ButtonRequest_ConfirmOutput, amount_str,
Expand Down

0 comments on commit fb531bf

Please sign in to comment.