We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2801046 commit 4687551Copy full SHA for 4687551
src/main/scala/ton/sdk/client/modules/Abi.scala
@@ -27,12 +27,6 @@ object Abi {
27
val handle: AbiJson = AbiJson("Handle", 0.asJson)
28
def fromJson(abiJson: Json): AbiJson = AbiJson("Serialized", abiJson)
29
def fromString(abiJson: String): Either[ParsingFailure, AbiJson] = parse(abiJson).map(fromJson)
30
- def fromFile(path: String): Either[ParsingFailure, AbiJson] = fromString {
31
- val source = Source.fromFile(path)
32
- val str = source.mkString
33
- source.close()
34
- str
35
- }
36
def fromResource(name: String, classLoader: ClassLoader = Thread.currentThread().getContextClassLoader): Either[ParsingFailure, AbiJson] =
37
fromString(Source.fromResource(name, classLoader).mkString)
38
}
0 commit comments