Skip to content

Commit

Permalink
Updating test cases to remove the old script classes as arguments and…
Browse files Browse the repository at this point in the history
… use regular Move classes
  • Loading branch information
xbtmatt committed Oct 11, 2023
1 parent ae18d9e commit 8a50cda
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions tests/e2e/api/transaction_submission.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ import { MoveObject } from "../../../src/bcs/serializable/move-structs";
import { Account } from "../../../src/core/account";
import { Ed25519PrivateKey } from "../../../src/crypto/ed25519";
import { AccountAuthenticator, AccountAuthenticatorEd25519 } from "../../../src/transactions/authenticator/account";
import {
RawTransaction,
ScriptTransactionArgumentAddress,
ScriptTransactionArgumentU64,
} from "../../../src/transactions/instances";
import { RawTransaction } from "../../../src/transactions/instances";
import {
TransactionPayloadEntryFunction,
TransactionPayloadMultisig,
Expand Down Expand Up @@ -115,11 +111,11 @@ describe("transaction submission", () => {
"a11ceb0b060000000701000402040a030e18042608052e4307713e08af01200000000101020401000100030800010403040100010505060100010607040100010708060100000201020202030207060c060c0303050503030b000108010b000108010b0001080101080102060c03010b0001090002070b000109000b000109000002070b000109000302050b000109000a6170746f735f636f696e04636f696e04436f696e094170746f73436f696e087769746864726177056d657267650765787472616374076465706f73697400000000000000000000000000000000000000000000000000000000000000010000011a0b000a0238000c070b010a0338000c080d070b0838010d070b020b03160b061738020c090b040b0738030b050b09380302",
type_arguments: [],
arguments: [
new ScriptTransactionArgumentU64(BigInt(100)),
new ScriptTransactionArgumentU64(BigInt(200)),
new ScriptTransactionArgumentAddress(bob.accountAddress),
new ScriptTransactionArgumentAddress(alice.accountAddress),
new ScriptTransactionArgumentU64(BigInt(50)),
new U64(BigInt(100)),
new U64(BigInt(200)),
bob.accountAddress,
alice.accountAddress,
new U64(BigInt(50)),
],
},
});
Expand Down Expand Up @@ -236,11 +232,11 @@ describe("transaction submission", () => {
"a11ceb0b060000000701000402040a030e18042608052e4307713e08af01200000000101020401000100030800010403040100010505060100010607040100010708060100000201020202030207060c060c0303050503030b000108010b000108010b0001080101080102060c03010b0001090002070b000109000b000109000002070b000109000302050b000109000a6170746f735f636f696e04636f696e04436f696e094170746f73436f696e087769746864726177056d657267650765787472616374076465706f73697400000000000000000000000000000000000000000000000000000000000000010000011a0b000a0238000c070b010a0338000c080d070b0838010d070b020b03160b061738020c090b040b0738030b050b09380302",
type_arguments: [],
arguments: [
new ScriptTransactionArgumentU64(BigInt(100)),
new ScriptTransactionArgumentU64(BigInt(200)),
new ScriptTransactionArgumentAddress(bob.accountAddress),
new ScriptTransactionArgumentAddress(alice.accountAddress),
new ScriptTransactionArgumentU64(BigInt(50)),
new U64(BigInt(100)),
new U64(BigInt(200)),
bob.accountAddress,
alice.accountAddress,
new U64(BigInt(50)),
],
},
});
Expand Down

0 comments on commit 8a50cda

Please sign in to comment.