@@ -87,7 +87,7 @@ public class ERC1155: IERC1155 {
87
87
} . wait ( )
88
88
}
89
89
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 {
91
91
let contract = self . contract
92
92
var basicOptions = TransactionOptions ( )
93
93
basicOptions. from = from
@@ -97,7 +97,7 @@ public class ERC1155: IERC1155 {
97
97
return tx
98
98
}
99
99
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 {
101
101
let contract = self . contract
102
102
var basicOptions = TransactionOptions ( )
103
103
basicOptions. from = from
@@ -107,7 +107,7 @@ public class ERC1155: IERC1155 {
107
107
return tx
108
108
}
109
109
110
- func balanceOf( account: EthereumAddress , id: BigUInt ) throws -> BigUInt {
110
+ public func balanceOf( account: EthereumAddress , id: BigUInt ) throws -> BigUInt {
111
111
let contract = self . contract
112
112
var transactionOptions = TransactionOptions ( )
113
113
transactionOptions. callOnBlock = . latest
@@ -116,7 +116,7 @@ public class ERC1155: IERC1155 {
116
116
return res
117
117
}
118
118
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 {
120
120
let contract = self . contract
121
121
var basicOptions = TransactionOptions ( )
122
122
basicOptions. from = from
@@ -126,7 +126,7 @@ public class ERC1155: IERC1155 {
126
126
return tx
127
127
}
128
128
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 {
130
130
let contract = self . contract
131
131
var basicOptions = TransactionOptions ( )
132
132
basicOptions. callOnBlock = . latest
@@ -135,7 +135,7 @@ public class ERC1155: IERC1155 {
135
135
return res
136
136
}
137
137
138
- func supportsInterface( interfaceID: String ) throws -> Bool {
138
+ public func supportsInterface( interfaceID: String ) throws -> Bool {
139
139
let contract = self . contract
140
140
var transactionOptions = TransactionOptions ( )
141
141
transactionOptions. callOnBlock = . latest
0 commit comments