feat: update contract ABI QueueIndex type to uint64 (#371)

* update contract ABI QueueIndex type to uint64

* Update bindings.go
This commit is contained in:
Péter Garamvölgyi 2023-06-28 15:51:58 +02:00 committed by GitHub
parent b14a4024cd
commit 5abc15db78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View file

@ -24,7 +24,7 @@ import (
const ( const (
VersionMajor = 4 // Major version component of the current release VersionMajor = 4 // Major version component of the current release
VersionMinor = 2 // Minor version component of the current release VersionMinor = 2 // Minor version component of the current release
VersionPatch = 2 // Patch version component of the current release VersionPatch = 3 // Patch version component of the current release
VersionMeta = "sepolia" // Version metadata to append to the version string VersionMeta = "sepolia" // Version metadata to append to the version string
) )

File diff suppressed because one or more lines are too long

View file

@ -72,12 +72,12 @@ func (c *BridgeClient) fetchMessagesInRange(ctx context.Context, from, to uint64
event := it.Event event := it.Event
log.Trace("Received new L1 QueueTransaction event", "event", event) log.Trace("Received new L1 QueueTransaction event", "event", event)
if !event.QueueIndex.IsUint64() || !event.GasLimit.IsUint64() { if !event.GasLimit.IsUint64() {
return nil, fmt.Errorf("invalid QueueTransaction event: QueueIndex = %v, GasLimit = %v", event.QueueIndex, event.GasLimit) return nil, fmt.Errorf("invalid QueueTransaction event: QueueIndex = %v, GasLimit = %v", event.QueueIndex, event.GasLimit)
} }
msgs = append(msgs, types.L1MessageTx{ msgs = append(msgs, types.L1MessageTx{
QueueIndex: event.QueueIndex.Uint64(), QueueIndex: event.QueueIndex,
Gas: event.GasLimit.Uint64(), Gas: event.GasLimit.Uint64(),
To: &event.Target, To: &event.Target,
Value: event.Value, Value: event.Value,