Skip to content

Commit

Permalink
Fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
SupunS committed Feb 15, 2024
1 parent baf9cc3 commit 8f8d093
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions fvm/evm/stdlib/contract.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import "FlowToken"
access(all)
contract EVM {

pub event BridgedAccountCreated(addressBytes: [UInt8; 20])
access(all)
event BridgedAccountCreated(addressBytes: [UInt8; 20])

/// EVMAddress is an EVM-compatible address
access(all)
Expand Down Expand Up @@ -276,12 +277,12 @@ contract EVM {

let isValid = keyList.verify(
signatureSet: signatureSet,
signedData: signedData
signedData: signedData,
domainSeparationTag: "FLOW-V0.0-user"
)
assert(isValid, message: "signatures not valid")

let coaRef = acc.getCapability(path)
.borrow<&EVM.BridgedAccount{EVM.Addressable}>()
let coaRef = acc.capabilities.borrow<&EVM.BridgedAccount>(path)
?? panic("could not borrow bridge account's address")

// verify evm address matching
Expand Down
2 changes: 1 addition & 1 deletion ledger/complete/compactor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ func replaySegments(
updateFn func(update *ledger.TrieUpdate) error,
deleteFn func(rootHash ledger.RootHash) error,
) error {
sr, err := prometheusWAL.NewSegmentsRangeReader(unittest.Logger(), prometheusWAL.SegmentRange{
sr, err := prometheusWAL.NewSegmentsRangeReader(prometheusWAL.SegmentRange{
Dir: dir,
First: 0,
Last: to,
Expand Down
2 changes: 1 addition & 1 deletion ledger/complete/wal/wal.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func (w *DiskWAL) replay(
Int("loaded_checkpoint", loadedCheckpoint).
Msgf("replaying segments from %d to %d", startSegment, to)

sr, err := prometheusWAL.NewSegmentsRangeReader(w.log, prometheusWAL.SegmentRange{
sr, err := prometheusWAL.NewSegmentsRangeReader(prometheusWAL.SegmentRange{
Dir: w.wal.Dir(),
First: startSegment,
Last: to,
Expand Down

0 comments on commit 8f8d093

Please sign in to comment.