Skip to content

Commit

Permalink
Merge pull request #134 from aura-nw/euphoria
Browse files Browse the repository at this point in the history
Euphoria
  • Loading branch information
harisato authored Nov 19, 2023
2 parents 0c92948 + ca67d4e commit 84c92b6
Show file tree
Hide file tree
Showing 6 changed files with 123 additions and 249 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
"migration:revert": "ts-node node_modules/typeorm/cli.js -f ormconfig migration:revert"
},
"dependencies": {
"@cosmjs/amino": "^0.28.1",
"@cosmjs/cosmwasm-stargate": "^0.28.1",
"@cosmjs/crypto": "^0.28.1",
"@cosmjs/encoding": "^0.28.1",
"@cosmjs/math": "^0.29.5",
"@cosmjs/proto-signing": "^0.28.1",
"@cosmjs/stargate": "0.28.11",
"@cosmjs/amino": "^0.31.1",
"@cosmjs/cosmwasm-stargate": "^0.31.1",
"@cosmjs/crypto": "^0.31.1",
"@cosmjs/encoding": "^0.31.1",
"@cosmjs/math": "^0.31.1",
"@cosmjs/proto-signing": "^0.31.1",
"@cosmjs/stargate": "0.31.1",
"@golevelup/ts-jest": "^0.3.5",
"@nestjs/axios": "0.1.0",
"@nestjs/bull": "^10.0.1",
Expand Down
2 changes: 1 addition & 1 deletion src/chains/chain.helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class ChainHelper {
// stargate@0.28.11
const aminoTypes = new AminoTypes({
...createBankAminoConverters(),
...createStakingAminoConverters(prefix),
...createStakingAminoConverters(),
...createDistributionAminoConverters(),
...createGovAminoConverters(),
...createWasmAminoConverters(),
Expand Down
3 changes: 1 addition & 2 deletions src/modules/simulate/safe.simulate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,10 @@ export class SafeSimulate {
messages: IMessageUnknown[],
sequence: number,
safePubkey: ISafePubkey,
prefix: string,
) {
let simulateAuthInfo: string;
// get simulate msgs base typeUrl and the messages given by user
const encodeMsgs = SimulateUtils.anyToEncodeMsgs(messages, prefix);
const encodeMsgs = SimulateUtils.anyToEncodeMsgs(messages);

const updatedEncodeMsgs = encodeMsgs.map((msg) => {
const updatedMsg = msg as IEncodedObjectMsg;
Expand Down
3 changes: 1 addition & 2 deletions src/modules/simulate/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,10 @@ export class SimulateUtils {
*/
static anyToEncodeMsgs(
messages: IMessageUnknown[],
prefix: string,
): EncodeObject[] {
const aminoTypes = new AminoTypes({
...createBankAminoConverters(),
...createStakingAminoConverters(prefix),
...createStakingAminoConverters(),
...createDistributionAminoConverters(),
...createGovAminoConverters(),
...createWasmAminoConverters(),
Expand Down
1 change: 0 additions & 1 deletion src/modules/simulate/wallet.simulate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ export class WalletSimulate {
messages,
sequence,
safePubkey,
this.chain.prefix,
);

// build txBytes
Expand Down
Loading

0 comments on commit 84c92b6

Please sign in to comment.