Skip to content

Commit

Permalink
bugfix: send the gnosisSafeAddress to handleOutcomeUMA and remove con…
Browse files Browse the repository at this point in the history
…sole.logs
  • Loading branch information
juliopavila committed Nov 29, 2023
1 parent f1b8b4e commit e228444
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
getContractABI,
contractInteractionToModuleTransaction,
createBatch,
getNativeAsset
} from '../../index';
import { Network } from '../../constants';
import SafeSnapTokensModal from './TokensModal.vue';
Expand Down
1 change: 0 additions & 1 deletion src/plugins/safeSnap/components/Form/TransferFunds.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export default {
modelValue(newModelValue) {
if (this.isDetails && newModelValue) {
this.to = newModelValue.recipient || '';
console.log('newModelValue.amount', newModelValue.amount);
this.value = newModelValue.amount || '0';
if (newModelValue.token) {
this.tokenAddress = newModelValue.token.address;
Expand Down
6 changes: 4 additions & 2 deletions src/plugins/safeSnap/components/HandleOutcomeUma.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const props = defineProps<{
network: Network;
umaAddress: string;
multiSendAddress: string;
gnosisSafeAddress: string;
}>();
const { formatDuration } = useIntl();
Expand Down Expand Up @@ -351,15 +352,16 @@ function extractConnextBatches(batches: Batch[], proposal: Proposal) {
} else {
transactions = [txOrGroup];
}
transactions.forEach(tx => {
if (
tx.nonce !== undefined &&
tx.nonce.toString() === connextTransaction.nonce.toString()
) {
const newEntry = {
batchNonce: connextTransaction.nonce,
gnosisSafeAddress: safe.gnosisSafeAddress
gnosisSafeAddress:
safe.gnosisSafeAddress ?? props.gnosisSafeAddress
};
// avoid duplicated
Expand Down
2 changes: 2 additions & 0 deletions src/plugins/safeSnap/components/SafeTransactions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ export default {
if (!this.gnosisSafeAddress && dao) {
this.transactionConfig.gnosisSafeAddress = dao;
this.gnosisSafeAddress = dao;
}
this.moduleType = moduleType;
Expand Down Expand Up @@ -444,6 +445,7 @@ export default {
:proposal="proposal"
:space="space"
:results="results"
:gnosis-safe-address="transactionConfig.gnosisSafeAddress"
:uma-address="transactionConfig.umaAddress"
:multi-send-address="transactionConfig.multiSendAddress"
:network="transactionConfig.network"
Expand Down

0 comments on commit e228444

Please sign in to comment.