Skip to content

Commit

Permalink
style: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
erictaylor committed Oct 22, 2024
1 parent c69e1e6 commit 9b82b2d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 47 deletions.
16 changes: 0 additions & 16 deletions src/fixtures/pvm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,33 +307,19 @@ export const transformSubnetTxBytes = () =>

export const convertSubnetValidator = () =>
new ConvertSubnetValidator(
// nodeId(),
bytes(),
bigIntPr(),
bigIntPr(),

// signer(),
// outputOwner(),
// outputOwner(),
proofOfPossession(),
pChainOwner(),
pChainOwner(),
);

export const convertSubnetValidatorBytes = () =>
concatBytes(
// nodeIdBytes(),
bytesBytes(),
bigIntPrBytes(),
bigIntPrBytes(),

// bytesForInt(28),
// signerBytes(),
// bytesForInt(11),
// outputOwnerBytes(),
// bytesForInt(11),
// outputOwnerBytes(),

proofOfPossessionBytes(),
pChainOwnerBytes(),
pChainOwnerBytes(),
Expand All @@ -344,7 +330,6 @@ export const convertSubnetTx = () =>
baseTx(),
id(),
id(),
// address(),
bytes(),
makeList(convertSubnetValidator)(),
input(),
Expand All @@ -355,7 +340,6 @@ export const convertSubnetTxBytes = () =>
baseTxbytes(),
idBytes(),
idBytes(),
// addressBytes(),
bytesBytes(),
makeListBytes(convertSubnetValidatorBytes)(),
bytesForInt(10),
Expand Down
1 change: 0 additions & 1 deletion src/vms/pvm/etna-builder/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1433,7 +1433,6 @@ export const newConvertSubnetTx: TxBuilderFn<NewConvertSubnetTxProps> = (
),
Id.fromString(subnetId),
Id.fromString(chainId),
// new Address(address),
new Bytes(address),
sortedValidators,
Input.fromNative(subnetAuth),
Expand Down
30 changes: 0 additions & 30 deletions src/vms/pvm/txs/fee/complexity.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ describe('Complexity', () => {

describe('getConvertSubnetValidatorComplexity', () => {
test('any can spend', () => {
// const pChainOwner = OutputOwners.fromNative([], 0n, 1);
const pChainOwner = PChainOwner.fromNative([], 1);
const validator = ConvertSubnetValidator.fromNative(
'NodeID-MqgFXT8JhorbEW2LpTDGePBBhv55SSp3M',
Expand All @@ -304,15 +303,6 @@ describe('Complexity', () => {
);
});
test('single remaining balance owner', () => {
// const remainingBalanceOwner = OutputOwners.fromNative(
// [
// utils.bech32ToBytes(
// 'P-custom1p8ddr5wfmfq0zv3n2wnst0cm2pfccaudm3wsrs',
// ),
// ],
// 0n,
// 1,
// );
const remainingBalanceOwner = PChainOwner.fromNative(
[
utils.bech32ToBytes(
Expand All @@ -321,7 +311,6 @@ describe('Complexity', () => {
],
1,
);
// const deactivationOwner = OutputOwners.fromNative([], 0n, 1);
const deactivationOwner = PChainOwner.fromNative([], 1);
const validator = ConvertSubnetValidator.fromNative(
'NodeID-MqgFXT8JhorbEW2LpTDGePBBhv55SSp3M',
Expand All @@ -343,15 +332,6 @@ describe('Complexity', () => {
);
});
test('single deactivation owner', () => {
// const deactivationOwner = OutputOwners.fromNative(
// [
// utils.bech32ToBytes(
// 'P-custom1p8ddr5wfmfq0zv3n2wnst0cm2pfccaudm3wsrs',
// ),
// ],
// 0n,
// 1,
// );
const deactivationOwner = PChainOwner.fromNative(
[
utils.bech32ToBytes(
Expand All @@ -360,7 +340,6 @@ describe('Complexity', () => {
],
1,
);
// const remainingBalanceOwner = OutputOwners.fromNative([], 0n, 1);
const remainingBalanceOwner = PChainOwner.fromNative([], 1);
const validator = ConvertSubnetValidator.fromNative(
'NodeID-MqgFXT8JhorbEW2LpTDGePBBhv55SSp3M',
Expand All @@ -382,15 +361,6 @@ describe('Complexity', () => {
);
});
test('remaining balance owner and deactivation owner', () => {
// const pChainOwner = OutputOwners.fromNative(
// [
// utils.bech32ToBytes(
// 'P-custom1p8ddr5wfmfq0zv3n2wnst0cm2pfccaudm3wsrs',
// ),
// ],
// 0n,
// 1,
// );
const pChainOwner = PChainOwner.fromNative(
[
utils.bech32ToBytes(
Expand Down

0 comments on commit 9b82b2d

Please sign in to comment.