Skip to content

Commit 64d9220

Browse files
committed
Add policyable protcol to separate file
1 parent fd78f00 commit 64d9220

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

Sources/Core/Transaction/CodableTransaction.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,6 @@ extension CodableTransaction: Codable {
292292

293293
}
294294

295-
public protocol Policyable {
296-
func resolve(provider: Web3Provider, transaction: CodableTransaction?) async throws -> BigUInt
297-
}
298-
299295
extension CodableTransaction {
300296
public enum GasLimitPolicy {
301297
case automatic
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//
2+
// File.swift
3+
//
4+
//
5+
// Created by Jann Driessen on 01.11.22.
6+
//
7+
8+
import Foundation
9+
import BigInt
10+
11+
public protocol Policyable {
12+
func resolve(provider: Web3Provider, transaction: CodableTransaction?) async throws -> BigUInt
13+
}

0 commit comments

Comments
 (0)