fix owner dir for lthook and ownercount for lthook

This commit is contained in:
Richard Holland
2022-03-07 10:46:28 +00:00
parent dde00a9d12
commit 918472fa47
3 changed files with 79 additions and 15 deletions

View File

@@ -1,6 +1,8 @@
require('./utils-tests.js').TestRig('ws://localhost:6005').then(t=>
{
const account = t.randomAccount();
const account = (process.argv.length < 3 ? t.randomAccount() :
t.xrpljs.Wallet.fromSeed(process.argv[2]));
t.fundFromGenesis(account).then(()=>
{
t.api.submit(
@@ -20,6 +22,7 @@ require('./utils-tests.js').TestRig('ws://localhost:6005').then(t=>
Hooks: [
{
Hook: {
Flags: t.hsfOVERRIDE,
CreateCode: t.wasm('accept.wasm'),
HookApiVersion: 0,
HookNamespace: "DEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEF",

View File

@@ -44,7 +44,9 @@ module.exports = {
const randomAccount = ()=>
{
return xrpljs.Wallet.fromSeed(kp.generateSeed());
const acc = xrpljs.Wallet.fromSeed(kp.generateSeed());
console.log(acc)
return acc
};
const hookHash = fn =>