mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
fix owner dir for lthook and ownercount for lthook
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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 =>
|
||||
|
||||
Reference in New Issue
Block a user