diff --git a/Trust/Extensions/GethBigInt.swift b/Trust/Extensions/GethBigInt.swift index 33cc76058..debee7538 100644 --- a/Trust/Extensions/GethBigInt.swift +++ b/Trust/Extensions/GethBigInt.swift @@ -20,4 +20,8 @@ extension GethBigInt { let bignum = Bignum(double.description) return GethBigInt.from(hex: bignum.asString(withBase: 16)) } + + static func from(int: Int) -> GethBigInt { + return GethNewBigInt(Int64(int)) + } }