Skip to content

Commit

Permalink
add bundle dev/20230114-pre-rc.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jennijuju authored and arajasek committed Jan 14, 2023
1 parent d8a6a7e commit e85a5c1
Show file tree
Hide file tree
Showing 6 changed files with 359 additions and 376 deletions.
Binary file modified build/actors/v10.tar.zst
Binary file not shown.
Binary file modified build/actors/v8.tar.zst
Binary file not shown.
Binary file modified build/actors/v9.tar.zst
Binary file not shown.
718 changes: 354 additions & 364 deletions build/builtin_actors_gen.go

Large diffs are not rendered by default.

15 changes: 4 additions & 11 deletions chain/types/ethtypes/eth_transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,15 @@ import (
"fmt"
mathbig "math/big"

"github.com/filecoin-project/go-state-types/abi"

cbg "github.com/whyrusleeping/cbor-gen"
"golang.org/x/crypto/sha3"
"golang.org/x/xerrors"

"github.com/filecoin-project/go-address"
gocrypto "github.com/filecoin-project/go-crypto"
"github.com/filecoin-project/go-state-types/abi"
"github.com/filecoin-project/go-state-types/big"
builtintypes "github.com/filecoin-project/go-state-types/builtin"
"github.com/filecoin-project/go-state-types/builtin/v10/eam"
typescrypto "github.com/filecoin-project/go-state-types/crypto"

"github.com/filecoin-project/lotus/build"
Expand Down Expand Up @@ -140,17 +138,12 @@ func (tx *EthTxArgs) ToUnsignedMessage(from address.Address) (*types.Message, er
// nil indicates the EAM, only CreateExternal is allowed
if tx.To == nil {
to = builtintypes.EthereumAddressManagerActorAddr
// TODO: Uncomment
//method = builtintypes.MethodsEAM.CreateExternal
method = builtintypes.MethodsEAM.Create
method = builtintypes.MethodsEAM.CreateExternal
if len(tx.Input) == 0 {
return nil, xerrors.New("cannot call CreateExternal without params")
}
// TODO: CreateExternalParams, it doesn't have a nonce
params, err = actors.SerializeParams(&eam.CreateParams{
Initcode: tx.Input,
Nonce: uint64(tx.Nonce),
})
inputParams := abi.CborBytes(tx.Input)
params, err = actors.SerializeParams(&inputParams)
if err != nil {
return nil, fmt.Errorf("failed to serialize Create params: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion node/impl/full/eth.go
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ func (a *EthModule) ethCallToFilecoinMessage(ctx context.Context, tx ethtypes.Et
return nil, fmt.Errorf("failed to serialize Create params: %w", err)
}
params = params2
method = builtintypes.MethodsEAM.Create
method = builtintypes.MethodsEAM.CreateExternal
} else {
addr, err := tx.To.ToFilecoinAddress()
if err != nil {
Expand Down

0 comments on commit e85a5c1

Please sign in to comment.