Skip to content

Commit

Permalink
update testnet substrate-client
Browse files Browse the repository at this point in the history
  • Loading branch information
mariobassem authored and ashraffouda committed Sep 13, 2022
1 parent 2620bc4 commit e38cdc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/subi/test_substrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ func (s *SubstrateTestImpl) GetNodeTwin(id uint32) (uint32, error) {
return uint32(node.TwinID), nil
}
func (s *SubstrateTestImpl) UpdateNodeContract(identity Identity, contract uint64, body string, hash string) (uint64, error) {
res, err := s.Substrate.UpdateNodeContract(identity, contract, []byte(body), hash)
res, err := s.Substrate.UpdateNodeContract(identity, contract, body, hash)
return res, terr(err)
}
func (s *SubstrateTestImpl) CreateNodeContract(identity Identity, node uint32, body string, hash string, publicIPs uint32, solutionProviderID *uint64) (uint64, error) {
res, err := s.Substrate.CreateNodeContract(identity, node, []byte(body), hash, publicIPs)
res, err := s.Substrate.CreateNodeContract(identity, node, body, hash, publicIPs, solutionProviderID)
return res, terr(err)
}
func (s *SubstrateTestImpl) GetContract(contractID uint64) (Contract, error) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/substrates/substrate-test

0 comments on commit e38cdc2

Please sign in to comment.