mirror of
https://github.com/luxfi/safe-ios.git
synced 2026-10-30 15:19:20 +00:00
20 lines
355 B
Swift
20 lines
355 B
Swift
//
|
|
// UInt256.swift
|
|
// Multisig
|
|
//
|
|
// Created by Dmitry Bespalov on 15.06.20.
|
|
// Copyright © 2020 Gnosis Ltd. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import BigInt
|
|
|
|
typealias UInt256 = BigUInt
|
|
typealias Int256 = BigInt
|
|
|
|
extension UInt256 {
|
|
var data32: Data {
|
|
Data(ethHex: String(self, radix: 16)).leftPadded(to: 32).suffix(32)
|
|
}
|
|
}
|