Skip to content

Commit 957f96c

Browse files
committed
Change access control for Interfece-based methods.
1 parent ec6775e commit 957f96c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Sources/web3swift/Tokens/ERC1155/Web3+ERC1155.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public class ERC1155: IERC1155 {
8787
}.wait()
8888
}
8989

90-
func safeTransferFrom(from: EthereumAddress, to: EthereumAddress, originalOwner: EthereumAddress, id: BigUInt, value: BigUInt, data: [UInt8]) throws -> WriteTransaction {
90+
public func safeTransferFrom(from: EthereumAddress, to: EthereumAddress, originalOwner: EthereumAddress, id: BigUInt, value: BigUInt, data: [UInt8]) throws -> WriteTransaction {
9191
let contract = self.contract
9292
var basicOptions = TransactionOptions()
9393
basicOptions.from = from
@@ -97,7 +97,7 @@ public class ERC1155: IERC1155 {
9797
return tx
9898
}
9999

100-
func safeBatchTransferFrom(from: EthereumAddress, to: EthereumAddress, originalOwner: EthereumAddress, ids: [BigUInt], values: [BigUInt], data: [UInt8]) throws -> WriteTransaction {
100+
public func safeBatchTransferFrom(from: EthereumAddress, to: EthereumAddress, originalOwner: EthereumAddress, ids: [BigUInt], values: [BigUInt], data: [UInt8]) throws -> WriteTransaction {
101101
let contract = self.contract
102102
var basicOptions = TransactionOptions()
103103
basicOptions.from = from
@@ -107,7 +107,7 @@ public class ERC1155: IERC1155 {
107107
return tx
108108
}
109109

110-
func balanceOf(account: EthereumAddress, id: BigUInt) throws -> BigUInt {
110+
public func balanceOf(account: EthereumAddress, id: BigUInt) throws -> BigUInt {
111111
let contract = self.contract
112112
var transactionOptions = TransactionOptions()
113113
transactionOptions.callOnBlock = .latest
@@ -116,7 +116,7 @@ public class ERC1155: IERC1155 {
116116
return res
117117
}
118118

119-
func setApprovalForAll(from: EthereumAddress, operator user: EthereumAddress, approved: Bool, scope: Data) throws -> WriteTransaction {
119+
public func setApprovalForAll(from: EthereumAddress, operator user: EthereumAddress, approved: Bool, scope: Data) throws -> WriteTransaction {
120120
let contract = self.contract
121121
var basicOptions = TransactionOptions()
122122
basicOptions.from = from
@@ -126,7 +126,7 @@ public class ERC1155: IERC1155 {
126126
return tx
127127
}
128128

129-
func isApprovedForAll(owner: EthereumAddress, operator user: EthereumAddress, scope: Data) throws -> Bool {
129+
public func isApprovedForAll(owner: EthereumAddress, operator user: EthereumAddress, scope: Data) throws -> Bool {
130130
let contract = self.contract
131131
var basicOptions = TransactionOptions()
132132
basicOptions.callOnBlock = .latest
@@ -135,7 +135,7 @@ public class ERC1155: IERC1155 {
135135
return res
136136
}
137137

138-
func supportsInterface(interfaceID: String) throws -> Bool {
138+
public func supportsInterface(interfaceID: String) throws -> Bool {
139139
let contract = self.contract
140140
var transactionOptions = TransactionOptions()
141141
transactionOptions.callOnBlock = .latest

0 commit comments

Comments
 (0)