Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit af2ad66

Browse files
committed
removed merge conflicts
1 parent 8bd12f4 commit af2ad66

File tree

1 file changed

+8
-10
lines changed
  • programs/bpf_loader/src/syscalls

1 file changed

+8
-10
lines changed

programs/bpf_loader/src/syscalls/mod.rs

+8-10
Original file line numberDiff line numberDiff line change
@@ -1638,9 +1638,7 @@ declare_syscall!(
16381638
memory_mapping: &mut MemoryMapping,
16391639
) -> Result<u64, EbpfError> {
16401640
use solana_sdk::alt_bn128::prelude::{ALT_BN128_ADD, ALT_BN128_MUL, ALT_BN128_PAIRING};
1641-
16421641
let budget = invoke_context.get_compute_budget();
1643-
16441642
let (cost, output): (u64, usize) = match group_op {
16451643
ALT_BN128_ADD => (
16461644
budget.alt_bn128_addition_cost,
@@ -1669,15 +1667,15 @@ declare_syscall!(
16691667
}
16701668
};
16711669

1672-
invoke_context.get_compute_meter().consume(cost)?;
1670+
consume_compute_meter(invoke_context, cost)?;
16731671

1674-
let call_result = translate_slice_mut::<u8>(
1675-
memory_mapping,
1676-
result_addr,
1677-
ALT_BN128_MULTIPLICATION_OUTPUT_LEN as u64,
1678-
invoke_context.get_check_aligned(),
1679-
invoke_context.get_check_size(),
1680-
)?;
1672+
let input = translate_slice::<u8>(
1673+
memory_mapping,
1674+
input_addr,
1675+
input_size,
1676+
invoke_context.get_check_aligned(),
1677+
invoke_context.get_check_size(),
1678+
)?;
16811679

16821680
let call_result = translate_slice_mut::<u8>(
16831681
memory_mapping,

0 commit comments

Comments
 (0)