Skip to content

Commit f5c5c6e

Browse files
chore: marked contract and web3 variables in class 'web3contract' as 'public let';
1 parent e467aea commit f5c5c6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/web3swift/Web3/Web3+Contract.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ extension web3 {
1717

1818
/// Web3 instance bound contract instance.
1919
public class web3contract {
20-
private(set) public var contract: EthereumContract
21-
var web3: web3
20+
public let contract: EthereumContract
21+
public let web3: web3
2222
public var transactionOptions: TransactionOptions? = nil
2323

2424
/// Initialize the bound contract instance by supplying the Web3 provider bound object, ABI, Ethereum address and some default

0 commit comments

Comments
 (0)