gofmt
This commit is contained in:
parent
069c39fc12
commit
3b23ab952b
@ -101,7 +101,6 @@ func DiffAdtMap(preMap, curMap *adt.Map, out AdtMapDiff) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return curMap.Delete(k)
|
return curMap.Delete(k)
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
return err
|
return err
|
||||||
|
@ -71,7 +71,6 @@ func TestDiffAdtArray(t *testing.T) {
|
|||||||
assert.EqualValues(t, []byte{1}, changes.Removed[1].val)
|
assert.EqualValues(t, []byte{1}, changes.Removed[1].val)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func TestDiffAdtMap(t *testing.T) {
|
func TestDiffAdtMap(t *testing.T) {
|
||||||
ctxstoreA := newContextStore()
|
ctxstoreA := newContextStore()
|
||||||
ctxstoreB := newContextStore()
|
ctxstoreB := newContextStore()
|
||||||
@ -135,7 +134,6 @@ type TestDiffMap struct {
|
|||||||
|
|
||||||
var _ AdtMapDiff = &TestDiffMap{}
|
var _ AdtMapDiff = &TestDiffMap{}
|
||||||
|
|
||||||
|
|
||||||
func (t *TestDiffMap) AsKey(key string) (adt.Keyer, error) {
|
func (t *TestDiffMap) AsKey(key string) (adt.Keyer, error) {
|
||||||
k, err := adt.ParseUIntKey(key)
|
k, err := adt.ParseUIntKey(key)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -661,8 +661,6 @@ type AddressChange struct {
|
|||||||
|
|
||||||
type DiffInitActorStateFunc func(ctx context.Context, oldState *init_.State, newState *init_.State) (changed bool, user UserData, err error)
|
type DiffInitActorStateFunc func(ctx context.Context, oldState *init_.State, newState *init_.State) (changed bool, user UserData, err error)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
func (i *InitActorAddressChanges) AsKey(key string) (adt.Keyer, error) {
|
func (i *InitActorAddressChanges) AsKey(key string) (adt.Keyer, error) {
|
||||||
addr, err := address.NewFromBytes([]byte(key))
|
addr, err := address.NewFromBytes([]byte(key))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -786,4 +784,3 @@ func (sp *StatePredicates) OnAddressMapChange() DiffInitActorStateFunc {
|
|||||||
return true, addressChanges, nil
|
return true, addressChanges, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user