Skip to content

Commit

Permalink
fix: generate msg send on osmosis
Browse files Browse the repository at this point in the history
  • Loading branch information
trung2891 committed Oct 9, 2024
1 parent c20c33a commit 03a28c0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/universal-swap/src/msg/chains/osmosis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class OsmosisMsg extends ChainMsg {
break;
}
default:
throw generateError("Only support swap + bride on Osmosis");
throw generateError("Only support swap + bridge on Osmosis");
}
}

Expand Down Expand Up @@ -277,11 +277,9 @@ export class OsmosisMsg extends ChainMsg {
msg: toUtf8(
JSON.stringify({
send: {
send: {
contract: this.ENTRY_POINT_CONTRACT,
amount: this.path.tokenInAmount,
msg: toBinary(msg)
}
contract: this.ENTRY_POINT_CONTRACT,
amount: this.path.tokenInAmount,
msg: toBinary(msg)
}
})
),
Expand Down

0 comments on commit 03a28c0

Please sign in to comment.