Skip to content

Commit

Permalink
fix: tokeninfo data access
Browse files Browse the repository at this point in the history
  • Loading branch information
n4l5u0r committed Feb 1, 2022
1 parent c9765e4 commit b35605a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/handle_provide_token.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
void handle_provide_token(void *parameters) {
ethPluginProvideInfo_t *msg = (ethPluginProvideInfo_t *) parameters;
quickswap_parameters_t *context = (quickswap_parameters_t *) msg->pluginContext;
PRINTF("QUICKSWAP plugin provide token: 0x%p, 0x%p\n", msg->item1->token, msg->item2->token);

PRINTF("QUICKSWAP plugin provide token: 0x%p, 0x%p\n",
msg->item1->token.address,
msg->item2->token.address);

if (ADDRESS_IS_NETWORK_TOKEN(context->contract_address_sent)) {
context->decimals_sent = WEI_TO_ETHER;
Expand Down
Binary file modified tests/elfs/quickswap_nanos.elf
Binary file not shown.
Binary file modified tests/elfs/quickswap_nanox.elf
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/src/test.fixture.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ function processTest(device, contractName, testLabel, testDirSuffix, rawTxHex, s
}


function populateTransaction(contractAddr, inputData, chainId, value = "0.1") {
function populateTransaction(contractAddr, inputData, chainId, value = "0.0") {
// Get the generic transaction template
let unsignedTx = genericTx;
//adapt to the appropriate network
Expand Down

0 comments on commit b35605a

Please sign in to comment.