Skip to content

Commit 39b1411

Browse files
chore: removed empty array argument - empty array is the default value already
1 parent c55865c commit 39b1411

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/web3swift/Tokens/ST20/Web3+SecurityToken.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public class SecurityToken: ISecurityToken, ERC20BaseProperties {
9191

9292
func tokenDetails() async throws -> [UInt32] {
9393
transaction.callOnBlock = .latest
94-
let result = try await contract.createReadOperation("tokenDetails", parameters: [] as [AnyObject])!.callContractMethod()
94+
let result = try await contract.createReadOperation("tokenDetails")!.callContractMethod()
9595
guard let res = result["0"] as? [UInt32] else { throw Web3Error.processingError(desc: "Failed to get result of expected type from the Ethereum node") }
9696
return res
9797
}

0 commit comments

Comments
 (0)