mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
hardened contract handler
This commit is contained in:
parent
e5a285f17a
commit
ff8a904f09
@ -15,11 +15,11 @@ export default class ContractHandler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static set(name: string, contractInstance: Contract) {
|
protected static set(name: string, contractInstance: Contract) {
|
||||||
ContractHandler.contracts.set(name, contractInstance)
|
ContractHandler.contracts.set(name, contractInstance)
|
||||||
}
|
}
|
||||||
|
|
||||||
public static has(name: string): boolean {
|
protected static has(name: string): boolean {
|
||||||
return ContractHandler.contracts.has(name)
|
return ContractHandler.contracts.has(name)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user