Skip to content

Commit 9cc0677

Browse files
committed
Remove useless type param S
1 parent 5b395dd commit 9cc0677

File tree

11 files changed

+139
-142
lines changed

11 files changed

+139
-142
lines changed

fuel-vm/src/interpreter/blockchain.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ where
9797
M: Memory,
9898
Tx: ExecutableTransaction,
9999
S: InterpreterStorage,
100-
V: Verifier<S>,
100+
V: Verifier,
101101
{
102102
/// Loads contract ID pointed by `contract_id_addr`, and then for that contract,
103103
/// copies `length_unpadded` bytes from it starting from offset `contract_offset` into
@@ -537,7 +537,7 @@ impl<S, V> LoadContractCodeCtx<'_, S, V> {
537537
) -> IoResult<(), S::DataError>
538538
where
539539
S: InterpreterStorage,
540-
V: Verifier<S>,
540+
V: Verifier,
541541
{
542542
let ssp = *self.ssp;
543543
let sp = *self.sp;
@@ -895,7 +895,7 @@ impl<S, V> CodeCopyCtx<'_, S, V> {
895895
) -> IoResult<(), S::DataError>
896896
where
897897
S: InterpreterStorage,
898-
V: Verifier<S>,
898+
V: Verifier,
899899
{
900900
let contract_id = ContractId::from(self.memory.read_bytes(contract_id_addr)?);
901901

@@ -995,7 +995,7 @@ impl<S, V> CodeRootCtx<'_, S, V> {
995995
pub(crate) fn code_root(self, a: Word, b: Word) -> IoResult<(), S::DataError>
996996
where
997997
S: InterpreterStorage,
998-
V: Verifier<S>,
998+
V: Verifier,
999999
{
10001000
self.memory.write_noownerchecks(a, Bytes32::LEN)?;
10011001

@@ -1049,7 +1049,7 @@ impl<S, V> CodeSizeCtx<'_, S, V> {
10491049
where
10501050
S: StorageSize<ContractsRawCode>,
10511051
S: InterpreterStorage,
1052-
V: Verifier<S>,
1052+
V: Verifier,
10531053
{
10541054
let contract_id = ContractId::new(self.memory.read_bytes(b)?);
10551055

fuel-vm/src/interpreter/contract.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ where
6262
M: Memory,
6363
S: InterpreterStorage,
6464
Tx: ExecutableTransaction,
65-
V: Verifier<S>,
65+
V: Verifier,
6666
{
6767
pub(crate) fn contract_balance(
6868
&mut self,
@@ -194,7 +194,7 @@ impl<S, V> ContractBalanceCtx<'_, S, V> {
194194
where
195195
S: ContractsAssetsStorage,
196196
S: InterpreterStorage,
197-
V: Verifier<S>,
197+
V: Verifier,
198198
{
199199
let asset_id = AssetId::new(self.memory.read_bytes(b)?);
200200
let contract_id = ContractId::new(self.memory.read_bytes(c)?);
@@ -248,7 +248,7 @@ impl<S, Tx, V> TransferCtx<'_, S, Tx, V> {
248248
Tx: ExecutableTransaction,
249249
S: ContractsAssetsStorage,
250250
S: InterpreterStorage,
251-
V: Verifier<S>,
251+
V: Verifier,
252252
{
253253
let amount = transfer_amount;
254254
let destination =
@@ -326,7 +326,7 @@ impl<S, Tx, V> TransferCtx<'_, S, Tx, V> {
326326
Tx: ExecutableTransaction,
327327
S: ContractsAssetsStorage,
328328
S: InterpreterStorage,
329-
V: Verifier<S>,
329+
V: Verifier,
330330
{
331331
let out_idx =
332332
convert::to_usize(output_index).ok_or(PanicReason::OutputNotFound)?;

fuel-vm/src/interpreter/executors/debug.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ where
1717
S: InterpreterStorage,
1818
Tx: ExecutableTransaction,
1919
Ecal: EcalHandler,
20-
V: Verifier<S>,
20+
V: Verifier,
2121
{
2222
/// Continue the execution from a previously interrupted program flow.
2323
pub fn resume(&mut self) -> Result<ProgramState, InterpreterError<S::DataError>> {

fuel-vm/src/interpreter/executors/instruction.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ where
2929
S: InterpreterStorage,
3030
Tx: ExecutableTransaction,
3131
Ecal: EcalHandler,
32-
V: Verifier<S>,
32+
V: Verifier,
3333
{
3434
/// Execute the current instruction located in `$m[$pc]`.
3535
pub fn execute(&mut self) -> Result<ExecuteState, InterpreterError<S::DataError>> {
@@ -108,7 +108,7 @@ where
108108
S: InterpreterStorage,
109109
Tx: ExecutableTransaction,
110110
Ecal: EcalHandler,
111-
V: Verifier<S>,
111+
V: Verifier,
112112
{
113113
fn execute(
114114
self,
@@ -122,7 +122,7 @@ where
122122
S: InterpreterStorage,
123123
Tx: ExecutableTransaction,
124124
Ecal: EcalHandler,
125-
V: Verifier<S>,
125+
V: Verifier,
126126
{
127127
fn execute(
128128
self,

fuel-vm/src/interpreter/executors/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ where
839839
S: InterpreterStorage,
840840
Tx: ExecutableTransaction,
841841
Ecal: EcalHandler,
842-
V: Verifier<S>,
842+
V: Verifier,
843843
{
844844
fn update_transaction_outputs(
845845
&mut self,
@@ -1066,7 +1066,7 @@ where
10661066
Tx: ExecutableTransaction,
10671067
<Tx as IntoChecked>::Metadata: CheckedMetadata,
10681068
Ecal: EcalHandler,
1069-
V: Verifier<S>,
1069+
V: Verifier,
10701070
{
10711071
/// Initialize a pre-allocated instance of [`Interpreter`] with the provided
10721072
/// transaction and execute it. The result will be bound to the lifetime

0 commit comments

Comments
 (0)