Fix variable name testgroup*Address to testgroup*PubkeyBech32
This commit is contained in:
parent
63c2199c9d
commit
9a70faad3a
@ -10,13 +10,13 @@ import {
|
||||
import { Pubkey } from "./pubkeys";
|
||||
import {
|
||||
testgroup1,
|
||||
testgroup1Address,
|
||||
testgroup1PubkeyBech32,
|
||||
testgroup2,
|
||||
testgroup2Address,
|
||||
testgroup2PubkeyBech32,
|
||||
testgroup3,
|
||||
testgroup3Address,
|
||||
testgroup3PubkeyBech32,
|
||||
testgroup4,
|
||||
testgroup4Address,
|
||||
testgroup4PubkeyBech32,
|
||||
} from "./testutils.spec";
|
||||
|
||||
describe("encoding", () => {
|
||||
@ -147,16 +147,16 @@ describe("encoding", () => {
|
||||
});
|
||||
|
||||
it("works for multisig", () => {
|
||||
const expected1 = Bech32.decode(testgroup1Address).data;
|
||||
const expected1 = Bech32.decode(testgroup1PubkeyBech32).data;
|
||||
expect(encodeAminoPubkey(testgroup1)).toEqual(expected1);
|
||||
|
||||
const expected2 = Bech32.decode(testgroup2Address).data;
|
||||
const expected2 = Bech32.decode(testgroup2PubkeyBech32).data;
|
||||
expect(encodeAminoPubkey(testgroup2)).toEqual(expected2);
|
||||
|
||||
const expected3 = Bech32.decode(testgroup3Address).data;
|
||||
const expected3 = Bech32.decode(testgroup3PubkeyBech32).data;
|
||||
expect(encodeAminoPubkey(testgroup3)).toEqual(expected3);
|
||||
|
||||
const expected4 = Bech32.decode(testgroup4Address).data;
|
||||
const expected4 = Bech32.decode(testgroup4PubkeyBech32).data;
|
||||
expect(encodeAminoPubkey(testgroup4)).toEqual(expected4);
|
||||
});
|
||||
});
|
||||
|
||||
@ -40,7 +40,7 @@ export const testgroup1: MultisigThresholdPubkey = {
|
||||
pubkeys: [test1, test2, test3],
|
||||
},
|
||||
};
|
||||
export const testgroup1Address =
|
||||
export const testgroup1PubkeyBech32 =
|
||||
"wasmpub1ytql0csgqgfzd666axrjzquvkkvwu4qnp5603cyp3emc02sxzwdqutgqym9dke3t2h83dpv6vufzd666axrjzq5sdudaj5tv3nfm2f3exgkgqxlcwfxplf0g0rqwx2um6mqthzc0dqfzd666axrjzq7vjdge6cdksmdx7r5vl72rrc6kk30ezp376mup77wamzvgtzqq7v7aysdd";
|
||||
|
||||
export const testgroup2: MultisigThresholdPubkey = {
|
||||
@ -50,7 +50,7 @@ export const testgroup2: MultisigThresholdPubkey = {
|
||||
pubkeys: [test1, test2, test3],
|
||||
},
|
||||
};
|
||||
export const testgroup2Address =
|
||||
export const testgroup2PubkeyBech32 =
|
||||
"wasmpub1ytql0csgqyfzd666axrjzquvkkvwu4qnp5603cyp3emc02sxzwdqutgqym9dke3t2h83dpv6vufzd666axrjzq5sdudaj5tv3nfm2f3exgkgqxlcwfxplf0g0rqwx2um6mqthzc0dqfzd666axrjzq7vjdge6cdksmdx7r5vl72rrc6kk30ezp376mup77wamzvgtzqq7vc4ejke";
|
||||
|
||||
// 2/2 multisig
|
||||
@ -61,7 +61,7 @@ export const testgroup3: MultisigThresholdPubkey = {
|
||||
pubkeys: [test1, test3],
|
||||
},
|
||||
};
|
||||
export const testgroup3Address =
|
||||
export const testgroup3PubkeyBech32 =
|
||||
"wasmpub1ytql0csgqgfzd666axrjzquvkkvwu4qnp5603cyp3emc02sxzwdqutgqym9dke3t2h83dpv6vufzd666axrjzq7vjdge6cdksmdx7r5vl72rrc6kk30ezp376mup77wamzvgtzqq7vzjhugu";
|
||||
|
||||
// 2/2 multisig with custom sorting
|
||||
@ -72,5 +72,5 @@ export const testgroup4: MultisigThresholdPubkey = {
|
||||
pubkeys: [test3, test1],
|
||||
},
|
||||
};
|
||||
export const testgroup4Address =
|
||||
export const testgroup4PubkeyBech32 =
|
||||
"wasmpub1ytql0csgqgfzd666axrjzq7vjdge6cdksmdx7r5vl72rrc6kk30ezp376mup77wamzvgtzqq7vfzd666axrjzquvkkvwu4qnp5603cyp3emc02sxzwdqutgqym9dke3t2h83dpv6vujvg56k";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user