-
Notifications
You must be signed in to change notification settings - Fork 9
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
Finished the refactor for the SC executor #404
base: feat/v3.1
Are you sure you want to change the base?
Conversation
iulianpascalau
commented
Dec 27, 2024
- finished the refactor for the SC executor (part 3)
"Args", request.Args, "SC address", request.Address, "Caller", request.CallerAddr, "error", err) | ||
return nil, err | ||
} | ||
if response.Data.ReturnCode != okCodeAfterExecution { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we consider checking response and response.Data against nil here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added checks + removed duplicated code + added unit tests
} | ||
|
||
func (executor *refundExecutor) executeRefunds(ctx context.Context, refundIDs map[uint64]bridgeCore.ProxySCCompleteCallData, scProxyAddress string) error { | ||
networkConfig, err := executor.proxy.GetNetworkConfig(ctx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not cache the config?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess the SDK already caches the config, as seen here https://github.com/multiversx/mx-sdk-go/blob/888942f27039e743ad20e1169637a3da99abbb99/blockchain/baseProxy.go#L75