Skip to content

Commit

Permalink
Move from to the prepare input, as needed for gas estimation
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Broadhurst <[email protected]>
  • Loading branch information
peterbroadhurst committed Apr 20, 2022
1 parent 694ba4b commit 4b8046d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ffcapi/api_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ type Header struct {
// - The interface is a structure describing the method to invoke. The `variant` in the header tells you how to decode it. For variant=evm it will be an ABI method definition
// - The supplied value is passed through for each input parameter. It could be any JSON type (simple number/boolean/string, or complex object/array). The blockchain connection is responsible for serializing these according to the rules in the interface.
type TransactionInput struct {
From string `json:"from"`
GasPrice *fftypes.JSONAny `json:"gasPrice,omitempty"` // can be a simple string/number, or a complex object - contract is between policy engine and blockchain connector
TransactionPrepareInputs
}

type TransactionPrepareInputs struct {
From string `json:"from"`
To string `json:"to"`
Nonce *fftypes.FFBigInt `json:"nonce"`
Gas *fftypes.FFBigInt `json:"gas,omitempty"`
Expand Down

0 comments on commit 4b8046d

Please sign in to comment.