Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix backwards compatibility #285

Merged
merged 6 commits into from
Feb 26, 2024
Merged

Fix backwards compatibility #285

merged 6 commits into from
Feb 26, 2024

Conversation

dragos-rebegea
Copy link
Contributor

No description provided.

@iulianpascalau iulianpascalau self-requested a review February 26, 2024 09:39
Base automatically changed from MX-15179 to feat/v3 February 26, 2024 09:42
bridges/ethMultiversX/bridgeExecutor.go Outdated Show resolved Hide resolved
bridges/ethMultiversX/bridgeExecutor.go Outdated Show resolved Hide resolved
bridges/ethMultiversX/bridgeExecutor.go Outdated Show resolved Hide resolved

var notImplemented = errors.New("method not implemented")

var CallDataMock = func() []byte {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing mock comment

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

@@ -480,16 +480,15 @@ func getStatusFromBuff(buff []byte) (byte, error) {

func addBatchInfo(builder builders.VMQueryBuilder, batch *clients.TransferBatch) {
for _, dt := range batch.Deposits {
if dt.Data == nil {
continue
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this a dead code? Are there any chances to have a nil data here? Maybe log.Error as this is a programming error

Copy link
Contributor Author

@dragos-rebegea dragos-rebegea Feb 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed. it was actually dead code and anyway the builder would throw an error when executing the query ift data field would be nil

bridges/ethMultiversX/bridgeExecutor.go Show resolved Hide resolved
@dragos-rebegea dragos-rebegea merged commit a6f6910 into feat/v3 Feb 26, 2024
3 checks passed
@dragos-rebegea dragos-rebegea deleted the MX-15180 branch February 26, 2024 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants