Skip to content

Commit

Permalink
v2.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
edutomesco committed Mar 4, 2024
1 parent fdd1e33 commit c72de0c
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions bloock.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Package bloock provides a centralized configuration for the Bloock SDK library.
//
// For information about Bloock SDK in Go, see https://bloock.com.
// For information about Bloock SDK in Go, see https://bloock.com.
package bloock

import (
Expand Down Expand Up @@ -43,8 +43,8 @@ func SetProvider(network integrity.Network, provider string) {
}
}

// SetContractAddess sets the contract address for the specified network in the Bloock SDK configuration.
func SetContractAddess(network integrity.Network, contractAddress string) {
// SetContractAddress sets the contract address for the specified network in the Bloock SDK configuration.
func SetContractAddress(network integrity.Network, contractAddress string) {
if _, ok := NetworkConfig[int32(network)]; ok {
NetworkConfig[int32(network.Number())].ContractAddress = contractAddress
} else {
Expand Down
10 changes: 5 additions & 5 deletions docs/Bloock.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ For information about Bloock SDK in Go, see https://bloock.com.
## Index

- [Variables](#variables)
- [func SetContractAddess\(network integrity.Network, contractAddress string\)](#SetContractAddess)
- [func SetContractAddress\(network integrity.Network, contractAddress string\)](#SetContractAddress)
- [func SetProvider\(network integrity.Network, provider string\)](#SetProvider)


Expand Down Expand Up @@ -55,14 +55,14 @@ var IdentityApiHost string = ""
var NetworkConfig map[int32]*proto.NetworkConfig = make(map[int32]*proto.NetworkConfig)
```

<a name="SetContractAddess"></a>
## func SetContractAddess
<a name="SetContractAddress"></a>
## func SetContractAddress

```go
func SetContractAddess(network integrity.Network, contractAddress string)
func SetContractAddress(network integrity.Network, contractAddress string)
```

SetContractAddess sets the contract address for the specified network in the Bloock SDK configuration.
SetContractAddress sets the contract address for the specified network in the Bloock SDK configuration.

<a name="SetProvider"></a>
## func SetProvider
Expand Down
2 changes: 2 additions & 0 deletions entity/integrity/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ func NetworkToProto(network Network) *proto.Network {

// networks represents a set of predefined networks.
type networks struct {
// Deprecated: Test networks will be deleted in future versions. If you have been integrating with an existent test API key and you want to start a free trial period please contact support@bloock.com.
BloockChain Network
EthereumGnosis Network
EthereumMainnet Network
// Deprecated: Test networks will be deleted in future versions. If you have been integrating with an existent test API key and you want to start a free trial period please contact support@bloock.com.
EthereumGoerli Network
EthereumPolygon Network
}
Expand Down
Loading

0 comments on commit c72de0c

Please sign in to comment.