Skip to content

Verify tradeID  #6

@will-x86

Description

@will-x86

Hey I had an issue with verifying if the trade I was accepting was the correct trade

Two things:
1 -> The description regex was broken, I believe this is due to a change in steam's api
2 -> Cannot verify what items were in a trade.

By adding this regex expression to steam_guard_account.go:

var creatorKeyRegex = regexp.MustCompile("data-creator=\"(\\d+)\"")

And removing the validation for descKeyRegex and replacing it with creatorKeyRegex
Then:
Changing confirmation.go to:

package mobileauth

type Confirmation struct {
	ConfirmationID  string
	ConfirmationKey string
	Creator         string
}

This means you can verify which trade you are accepting
Created = tradeID ( received when sending a trade)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions