Use `R.file` for embedded ERC20/1155 ABI files

pull/3232/head
Hwee-Boon Yar 3 years ago
parent 39878f8938
commit d1a06bdc75
  1. 4
      AlphaWallet/Core/Ethereum/ABI/ABI.swift

@ -14,12 +14,12 @@ extension AlphaWallet {
}
extension AlphaWallet.Ethereum.ABI {
static let ERC20: Data = {
let url = Bundle.main.url(forResource: "ERC20", withExtension: "json")!
let url = R.file.erc20Json()!
return try! Data(contentsOf: url)
}()
static let erc1155: Data = {
let url = Bundle.main.url(forResource: "ERC1155", withExtension: "json")!
let url = R.file.erc1155Json()!
return try! Data(contentsOf: url)
}()

Loading…
Cancel
Save