Skip to content

Commit

Permalink
Update 01-tx-lifecycle.md
Browse files Browse the repository at this point in the history
  • Loading branch information
samricotta committed May 6, 2024
1 parent 122c792 commit 5ea4174
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/learn/beginner/01-tx-lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ The function `BroadcastTx` in `client/tx/tx.go` demonstrates how a transaction i
```go
res, err := clientCtx.BroadcastTx(txBytes)
if err != nil {
return err
return err
}
```

Expand Down Expand Up @@ -106,9 +106,9 @@ Each transaction contains one or more messages (`sdk.Msg`), and each message has
The BaseApp holds a `MsgServiceRouter` which maps each message type to a specific module's handler. When a transaction is processed, `BaseApp` uses this router to direct the message to the correct module.


### Example of Routing
### Example of Routing

Let's say there is a transaction that involves transferring tokens. The message type might be `MsgSend`, and the `MsgServiceRouter` in `BaseApp` would route this message to the bank module's handler. The bank module would then validate the transaction details (like sender balance) and update the state to reflect the transfer if valid..
Let's say there is a transaction that involves transferring tokens. The message type might be `MsgSend`, and the `MsgServiceRouter` in `BaseApp` would route this message to the bank module's handler. The bank module would then validate the transaction details (like sender balance) and update the state to reflect the transfer if valid...

### Module Execution

Expand Down

0 comments on commit 5ea4174

Please sign in to comment.