Skip to content

Commit

Permalink
feat(accountCreateTransaction): Implement AccountCreateTransaction
Browse files Browse the repository at this point in the history
…E2E tests: TCK (#206)

Signed-off-by: Rob Walworth <robert.walworth@swirldslabs.com>
  • Loading branch information
rwalworth authored Aug 6, 2024
1 parent 40f7cb1 commit 040f4a6
Show file tree
Hide file tree
Showing 6 changed files with 1,071 additions and 641 deletions.
2 changes: 1 addition & 1 deletion .env.custom_node
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ OPERATOR_ACCOUNT_ID=0.0.1022
OPERATOR_ACCOUNT_PRIVATE_KEY=302e020100300506032b657004220420a608e2130a0a3cb34f86e757303c862bee353d9ab77ba4387ec084f881d420d4
NODE_TYPE=local
NODE_IP=127.0.0.1:50211
NODE_ACCOUNT_ID=3
NODE_ACCOUNT_ID=0.0.3
NODE_TIMEOUT=30000 # Time after which the tests would fail if the mirror node does not have the data
MIRROR_NETWORK=127.0.0.1:5600
MIRROR_NODE_REST_URL=http://127.0.0.1:5551
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Install packages with npm

Run specific test file

npm run test test/account/test_CreateAccount.js
npm run test test/account/test_accountCreateTransaction.js

Run all tests

Expand Down
12 changes: 0 additions & 12 deletions setup_Tests.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
import { JSONRPCRequest } from './client.js'

export async function generateAccountKeys() {
// Generate new private & public key
let privateKey = await JSONRPCRequest('generatePrivateKey', {})
let publicKey = await JSONRPCRequest('generatePublicKey', {
privateKey: privateKey,
})
return {
publicKey: publicKey,
privateKey: privateKey,
}
}

export async function setOperator(accountId, privateKey) {
// sets funding and fee-paying account for CRUD ops
await JSONRPCRequest('setup', {
Expand Down
Loading

0 comments on commit 040f4a6

Please sign in to comment.