Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Been a While #36

Merged
merged 3 commits into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ to construct, sign, and submit a transaction to a Substrate-based chain.

Tested on:

- Polkadot v0.9.13
- Sidecar v11.3.3
- Txwrapper Core v1.2.20
- Polkadot v1,000,001
- Sidecar v17.3.4
- Txwrapper Polkadot v7.2.0

### Start a Node

Expand Down Expand Up @@ -45,10 +45,10 @@ the base info (like IP/port for Sidecar) and an array of transactions you want t
Run `yarn start` and you will get:

```bash
Chain Name: Polkadot CC1
Chain Name: Polkadot
Spec Name: polkadot
Network Version: 14
Transaction Version: 2
Network Version: 1000001
Transaction Version: 24

Transaction Details:
Sending Account: 15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@
"lint": "tsc --noEmit && eslint . --ext ts"
},
"dependencies": {
"@polkadot/api": "9.5.1",
"@polkadot/util-crypto": "10.1.10",
"@substrate/txwrapper-polkadot": "4.0.1",
"@polkadot/api": "10.11.2",
"@polkadot/util-crypto": "12.6.2",
"@substrate/txwrapper-polkadot": "7.2.0",
"axios": "^1.1.2",
"node-fetch": "^3.2.10",
"ts-node": "^10.9.1",
"typescript": "4.8.4"
"typescript": "4.9.4"
},
"devDependencies": {
"@substrate/dev": "^0.6.5",
"readline": "^1.3.0"
},
"resolutions": {
"@polkadot/api": "9.5.1",
"typescript": "4.8.4"
"@polkadot/api": "10.11.2",
"typescript": "4.9.4"
}
}
8 changes: 4 additions & 4 deletions src/metadata.ts

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/payloadConstructors/balancesTransfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ export async function doBalancesTransfer(userInputs: TransferInputs): Promise<vo
amount: userInputs.transferValue,
});

const unsigned = methods.balances.transfer(
const unsigned = methods.balances.transferAllowDeath(
{
value: userInputs.transferValue,
dest: userInputs.recipientAddress.id,
dest: { id: userInputs.recipientAddress.id },
},
baseTxInfo,
optionsWithMeta,
Expand Down
2 changes: 1 addition & 1 deletion src/util/nodeInteraction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ interface PostResponseData {

// Get information about the chain.
export async function getChainData(sidecarHost: string): Promise<ChainData> {
const endpoint = `${sidecarHost}transaction/material`;
const endpoint = `${sidecarHost}transaction/material?noMeta=false&metadata=scale`;
const artifacts = await sidecarGet<MaterialsResponse>(endpoint);
return {
blockNumber: artifacts.at.height,
Expand Down
Loading
Loading