Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
feat: update NewZkevmRpcdProducer
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed May 24, 2023
1 parent 2873029 commit 678bc39
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions prover/proof_producer/zkevm_rpcd_producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type ZkevmRpcdProducer struct {
Retry bool // retry proof computation if error
CustomProofHook func() ([]byte, uint64, error) // only for testing purposes
ProofTimeTarget uint64 // used for calculating proof delay
ProtocolConfig bindings.TaikoDataConfig // protocol configurations
ProtocolConfig *bindings.TaikoDataConfig // protocol configurations
}

// RequestProofBody represents the JSON body for requesting the proof.
Expand Down Expand Up @@ -96,7 +96,7 @@ func NewZkevmRpcdProducer(
l2Endpoint string,
retry bool,
proofTimeTarget uint64,
protocolConfig bindings.TaikoDataConfig,
protocolConfig *bindings.TaikoDataConfig,
) (*ZkevmRpcdProducer, error) {
return &ZkevmRpcdProducer{
RpcdEndpoint: rpcdEndpoint,
Expand Down
2 changes: 1 addition & 1 deletion prover/proof_producer/zkevm_rpcd_producer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestNewZkevmRpcdProducer(t *testing.T) {
"",
false,
0,
bindings.TaikoDataConfig{},
&bindings.TaikoDataConfig{},
)
require.Nil(t, err)

Expand Down
2 changes: 1 addition & 1 deletion prover/prover.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func InitFromConfig(ctx context.Context, p *Prover, cfg *Config) (err error) {
cfg.L2HttpEndpoint,
true,
stateVars.ProofTimeTarget,
protocolConfigs,
p.protocolConfigs,
); err != nil {
return err
}
Expand Down

0 comments on commit 678bc39

Please sign in to comment.