Skip to content

Commit

Permalink
update lottery
Browse files Browse the repository at this point in the history
  • Loading branch information
dangell7 committed Jul 4, 2024
1 parent 8731f37 commit 25e9e70
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
24 changes: 12 additions & 12 deletions contracts/lottery/lottery_end.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,26 +217,26 @@ uint8_t lottery_start_ns[32] = {
0x8EU, 0xCCU, 0x4DU, 0xC1U, 0xFFU, 0x58U, 0x5CU, 0xF6U, 0x28U, 0x31U,
0x6DU, 0x70U};

// uint8_t rate_acct[20] = {
// 0x05U, 0xB5U, 0xF4U, 0x3AU, 0xF7U, 0x17U, 0xB8U, 0x19U, 0x48U, 0x49U,
// 0x1FU, 0xB7U, 0x07U, 0x9EU, 0x4FU, 0x17U, 0x3FU, 0x4EU, 0xCEU, 0xB3U
// };

uint8_t rate_acct[20] = {
0x7CU, 0xE1U, 0x83U, 0x29U, 0x70U, 0x51U, 0x4CU, 0x37U, 0x97U, 0xB2U,
0xABU, 0x5EU, 0x14U, 0x52U, 0x69U, 0x0FU, 0x1DU, 0x6EU, 0xA3U, 0x70U
0x05U, 0xB5U, 0xF4U, 0x3AU, 0xF7U, 0x17U, 0xB8U, 0x19U, 0x48U, 0x49U,
0x1FU, 0xB7U, 0x07U, 0x9EU, 0x4FU, 0x17U, 0x3FU, 0x4EU, 0xCEU, 0xB3U
};

// uint8_t issuer_buffer[20] = {
// 0x5BU, 0xEFU, 0x92U, 0x1AU, 0x21U, 0x7DU, 0x57U, 0xFDU, 0xA5U, 0xB5U,
// 0x6DU, 0x5BU, 0x40U, 0xBEU, 0xE4U, 0x0DU, 0x1AU, 0xC1U, 0x12U, 0x7FU
// uint8_t rate_acct[20] = {
// 0x7CU, 0xE1U, 0x83U, 0x29U, 0x70U, 0x51U, 0x4CU, 0x37U, 0x97U, 0xB2U,
// 0xABU, 0x5EU, 0x14U, 0x52U, 0x69U, 0x0FU, 0x1DU, 0x6EU, 0xA3U, 0x70U
// };

uint8_t issuer_buffer[20] = {
0xA4U, 0x07U, 0xAF, 0x58U, 0x56U, 0xCCU, 0xF3U, 0xC4U, 0x26U, 0x19U,
0xDAU, 0xA9U, 0x25U, 0x81U, 0x3FU, 0xC9U, 0x55U, 0xC7U, 0x29U, 0x83U
0x5BU, 0xEFU, 0x92U, 0x1AU, 0x21U, 0x7DU, 0x57U, 0xFDU, 0xA5U, 0xB5U,
0x6DU, 0x5BU, 0x40U, 0xBEU, 0xE4U, 0x0DU, 0x1AU, 0xC1U, 0x12U, 0x7FU
};

// uint8_t issuer_buffer[20] = {
// 0xA4U, 0x07U, 0xAF, 0x58U, 0x56U, 0xCCU, 0xF3U, 0xC4U, 0x26U, 0x19U,
// 0xDAU, 0xA9U, 0x25U, 0x81U, 0x3FU, 0xC9U, 0x55U, 0xC7U, 0x29U, 0x83U
// };

uint8_t currency_buffer[20] = {
0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U,
0x00U, 0x00U, 0x55U, 0x53U, 0x44U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U
Expand Down
4 changes: 2 additions & 2 deletions test/integration/lottery/lottery.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import {
iHook,
padHexString,
flipHex,
} from '@transia/hooks-toolkit'
} from '@transia/hooks-toolkit/dist/npm/src'
import {
// decodeModel,
// hexToUInt64,
Expand Down Expand Up @@ -108,7 +108,7 @@ export async function createLottery(
HookParameters: [otxn1param1.toXrpl(), otxn1param2.toXrpl()],
}

// console.log(JSON.stringify([otxn1param1.toXrpl(), otxn1param2.toXrpl()]))
console.log(JSON.stringify([otxn1param1.toXrpl(), otxn1param2.toXrpl()]))
const result1 = await Xrpld.submit(client, {
wallet: wallet,
tx: builtTx1,
Expand Down

0 comments on commit 25e9e70

Please sign in to comment.