Skip to content

Commit

Permalink
updates fee after fixing decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
claravanstaden authored and claravanstaden committed Nov 7, 2023
1 parent c9196e1 commit 7c74390
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion parachain/pallets/outbound-queue/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl crate::Config for Test {
type RuntimeEvent = RuntimeEvent;
type Hashing = Keccak256;
type MessageQueue = MessageQueue;
type Decimals = ConstU8<10>;
type Decimals = ConstU8<12>;
type MaxMessagePayloadSize = ConstU32<1024>;
type MaxMessagesPerBlock = ConstU32<20>;
type OwnParaId = OwnParaId;
Expand Down
4 changes: 2 additions & 2 deletions parachain/pallets/outbound-queue/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fn calculate_fees() {
new_tester().execute_with(|| {
let command = mock_message(1000).command;
let fee = OutboundQueue::calculate_fee(&command);
assert_eq!(fee.remote, 22000000000);
assert_eq!(fee.remote, 2200000000000);

println!("Total fee: {}", fee.total())
});
Expand All @@ -60,7 +60,7 @@ fn calculate_fees() {
fn convert_from_ether_decimals() {
assert_eq!(
OutboundQueue::convert_from_ether_decimals(1_000_000_000_000_000_000),
1_000_000_000_0
100_000_000_000_0
);
}

Expand Down

0 comments on commit 7c74390

Please sign in to comment.