Skip to content

Commit

Permalink
fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
vitrvvivs committed Oct 18, 2023
1 parent 53b4f8c commit f18bf5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion faucet-backend/bank.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (svc *Service) BankWorker() {
)
for {
svc.log.Printf("bank: attempting to connect to gRPC endpoint")
// XXX: Revert to Connect() when oasis-sdk updates to be compatible with oasis-core v23
// XXX: Revert to Connect() when oasis-sdk updates to be compatible with oasis-core v23
if conn, err = connection.ConnectNoVerify(ctx, svc.network); err != nil {
svc.log.Printf("bank: failed to connect to node: %v", err)
time.Sleep(15 * time.Second)
Expand Down
10 changes: 5 additions & 5 deletions faucet-backend/transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,18 +119,18 @@ func (svc *Service) SignAndSubmitMetaTx(
return nil, fmt.Errorf("failed to estimate gas")
}

chainContext, err := conn.Consensus().GetChainContext(ctx)
chainContext, err := conn.Consensus().GetChainContext(ctx)
if err != nil {
svc.log.Printf("tx/meta: failed to get ChainContext: %v", err)
return nil, fmt.Errorf("failed to get ChainContext")
}

// Sign the transaction.
sigCtx := &signature.RichContext{
RuntimeID: pt.Namespace(),
ChainContext: chainContext,
Base: types.SignatureContextBase,
}
RuntimeID: pt.Namespace(),
ChainContext: chainContext,
Base: types.SignatureContextBase,
}
ts := tx.PrepareForSigning()
if err := ts.AppendSign(signature.Context(sigCtx), ed25519.WrapSigner(svc.signer)); err != nil {
svc.log.Printf("tx/meta: failed to sign transaction: %v", err)
Expand Down

0 comments on commit f18bf5b

Please sign in to comment.