Fix compilation warnings (#216)
* Fix deprecated os_memmove warning Switched to the standard memmove function * Fix get_network_ticker implicit declaration warning Included the required missing header file * Removed useless execution rights from Makefile * Fix directory name in README
This commit is contained in:
committed by
Edouard Merle
parent
a4a055f8ab
commit
a490532605
@@ -20,7 +20,7 @@ First [install yarn](https://classic.yarnpkg.com/en/docs/install/#debian-stable)
|
||||
Open `tests/build_local_test_elfs.sh` and add your BOLOS SDKs path to `NANOS_SDK` and `NANOX_SDK`.
|
||||
This helper script will build the applications required by the test suite and move them at the right place.
|
||||
```
|
||||
cd test
|
||||
cd tests
|
||||
./build_local_test_elfs.sh
|
||||
```
|
||||
Then you can install the project by simply running:
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#include "eth_plugin_handler.h"
|
||||
#include "eth_plugin_internal.h"
|
||||
#include "shared_context.h"
|
||||
#include "network.h"
|
||||
|
||||
void eth_plugin_prepare_init(ethPluginInitContract_t *init, uint8_t *selector, uint32_t dataSize) {
|
||||
memset((uint8_t *) init, 0, sizeof(ethPluginInitContract_t));
|
||||
|
||||
@@ -411,7 +411,7 @@ void handleGetWalletId(volatile unsigned int *tx) {
|
||||
// pubkey -> sha512
|
||||
cx_hash_sha512(pub.W, sizeof(pub.W), t, sizeof(t));
|
||||
// ! cookie !
|
||||
os_memmove(G_io_apdu_buffer, t, 64);
|
||||
memmove(G_io_apdu_buffer, t, 64);
|
||||
*tx = 64;
|
||||
THROW(0x9000);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user