cosmos-sdk/examples
Adrian Brink 125954ace8 Strongly typed transactions in handlers
During transaction processing we retrieve the type of msg and based on
that we get the applicable handler from the router. This means that the
router should only receive messages that it knows how to handle. Instead
of using Get interfaces, we should cast to the actual type of
transaction and then access the transaction details that way.
It's okay to panic here, because if the DummyHandler receives a message
that it cannot cast to the expected type it means something is wrong
with the router. Instead of retrieving an arbitrary key by chance we
should panic.
2018-02-17 16:51:20 -05:00
..
basecoin x/sketchy -> examples/basecoin/x/sketchy 2018-02-17 16:32:30 -05:00
dummy Strongly typed transactions in handlers 2018-02-17 16:51:20 -05:00
gaia examples/gaia 2018-02-13 08:40:09 -05:00