mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Fixed incorrect memory access issues. (#109)
This commit is contained in:
@@ -34,14 +34,14 @@ async function main() {
|
||||
// Establish HotPocket connection.
|
||||
if (!await hpc.connect()) {
|
||||
console.log('Connection failed.');
|
||||
exit;
|
||||
exit();
|
||||
}
|
||||
console.log('HotPocket Connected.');
|
||||
|
||||
// This will get fired if HP server disconnects unexpectedly.
|
||||
hpc.on(HotPocketEvents.disconnect, () => {
|
||||
console.log('Server diconnected');
|
||||
exit;
|
||||
exit();
|
||||
})
|
||||
|
||||
// This will get fired when contract sends an output.
|
||||
|
||||
@@ -32,14 +32,14 @@ async function main() {
|
||||
// Establish HotPocket connection.
|
||||
if (!await hpc.connect()) {
|
||||
console.log('Connection failed.');
|
||||
exit;
|
||||
exit();
|
||||
}
|
||||
console.log('HotPocket Connected.');
|
||||
|
||||
// This will get fired if HP server disconnects unexpectedly.
|
||||
hpc.on(HotPocketEvents.disconnect, () => {
|
||||
console.log('Server diconnected');
|
||||
exit;
|
||||
console.log('Server disconnected');
|
||||
exit();
|
||||
})
|
||||
|
||||
// This will get fired when contract sends an output.
|
||||
|
||||
Reference in New Issue
Block a user