1 Commits
Author SHA1 Message Date
roysc 06723ee4e0 consolidate, simplify
Test / Run unit tests (pull_request) Failing after 4s
Test / Run integration tests (pull_request) Failing after 5s
2023-07-26 12:23:50 +08:00
+6 -2
View File
@@ -255,7 +255,9 @@ func (sdb *StateDiffBuilder) processAccounts(a, b trie.NodeIterator,
return it.Error()
}
func (sdb *StateDiffBuilder) processAccountDeletion(leafKey []byte, account types.StateAccount, nodeSink sdtypes.StateNodeSink) error {
func (sdb *StateDiffBuilder) processAccountDeletion(
leafKey []byte, account types.StateAccount, nodeSink sdtypes.StateNodeSink,
) error {
diff := sdtypes.StateLeafNode{
AccountWrapper: sdtypes.AccountWrapper{
LeafKey: leafKey,
@@ -270,7 +272,9 @@ func (sdb *StateDiffBuilder) processAccountDeletion(leafKey []byte, account type
return nodeSink(diff)
}
func (sdb *StateDiffBuilder) processAccountCreation(accountW *sdtypes.AccountWrapper, ipldSink sdtypes.IPLDSink, nodeSink sdtypes.StateNodeSink) error {
func (sdb *StateDiffBuilder) processAccountCreation(
accountW *sdtypes.AccountWrapper, ipldSink sdtypes.IPLDSink, nodeSink sdtypes.StateNodeSink,
) error {
diff := sdtypes.StateLeafNode{
AccountWrapper: *accountW,
}