forked from cerc-io/laconicd-deprecated
Finish and clean up module queries and txs (#152)
* Basic transactions set up (to be separated) * Change transaction command to not include create operation (to include other command in next commit) * set up create command and made minor changes * wip implements module queries * Added tests for query address decoding * Added ambiguous encoding of to address in transaction and added tests * Fix linting issue * Move registering key types to application level to allow module usage to ignore * Move genaccounts code to be reused * Switches nonce increase to always happen in ante handler * change SetNonce from keeper to point to actual nonce operation * Remove no op nonce switch (not needed with clearing cache) * Changes to update all accounts pre state transition and clear cache at end of block * Update accounts before end of block commit (edge case where necessary) * Fix nonce of sender going into evm in case it's checked, and let evm set contract starting nonce
This commit is contained in:
+3
-3
@@ -268,7 +268,7 @@ func (e *PublicEthAPI) SendTransaction(args params.SendTxArgs) (common.Hash, err
|
||||
}
|
||||
|
||||
// Assemble transaction from fields
|
||||
tx, err := e.GenerateFromArgs(args)
|
||||
tx, err := e.generateFromArgs(args)
|
||||
if err != nil {
|
||||
return common.Hash{}, err
|
||||
}
|
||||
@@ -871,8 +871,8 @@ func (e *PublicEthAPI) getGasLimit() (int64, error) {
|
||||
return gasLimit, nil
|
||||
}
|
||||
|
||||
// GenerateFromArgs populates tx message with args (used in RPC API)
|
||||
func (e *PublicEthAPI) GenerateFromArgs(args params.SendTxArgs) (msg *types.EthereumTxMsg, err error) {
|
||||
// generateFromArgs populates tx message with args (used in RPC API)
|
||||
func (e *PublicEthAPI) generateFromArgs(args params.SendTxArgs) (msg *types.EthereumTxMsg, err error) {
|
||||
var nonce uint64
|
||||
|
||||
var gasLimit uint64
|
||||
|
||||
Reference in New Issue
Block a user